Changeset 3101075
- Timestamp:
- 06/11/2024 10:11:16 AM (19 months ago)
- Location:
- mediacommander
- Files:
-
- 704 added
- 15 edited
-
tags/2.2.0 (added)
-
tags/2.2.0/assets (added)
-
tags/2.2.0/assets/blocks (added)
-
tags/2.2.0/assets/blocks/galleryblock (added)
-
tags/2.2.0/assets/blocks/galleryblock/block.json (added)
-
tags/2.2.0/assets/blocks/galleryblock/index.asset.php (added)
-
tags/2.2.0/assets/blocks/galleryblock/index.css (added)
-
tags/2.2.0/assets/blocks/galleryblock/index.js (added)
-
tags/2.2.0/assets/css (added)
-
tags/2.2.0/assets/css/colorpicker.css (added)
-
tags/2.2.0/assets/css/index.php (added)
-
tags/2.2.0/assets/css/notice.css (added)
-
tags/2.2.0/assets/css/notify.css (added)
-
tags/2.2.0/assets/css/settings.css (added)
-
tags/2.2.0/assets/css/sidebar.css (added)
-
tags/2.2.0/assets/img (added)
-
tags/2.2.0/assets/img/account.svg (added)
-
tags/2.2.0/assets/img/bg-beams.jpg (added)
-
tags/2.2.0/assets/img/check.svg (added)
-
tags/2.2.0/assets/img/chess.png (added)
-
tags/2.2.0/assets/img/crown.svg (added)
-
tags/2.2.0/assets/img/docs.svg (added)
-
tags/2.2.0/assets/img/folder.svg (added)
-
tags/2.2.0/assets/img/grab.png (added)
-
tags/2.2.0/assets/img/hero-buy.png (added)
-
tags/2.2.0/assets/img/index.php (added)
-
tags/2.2.0/assets/img/robo-head.svg (added)
-
tags/2.2.0/assets/img/robo.svg (added)
-
tags/2.2.0/assets/img/spinner.gif (added)
-
tags/2.2.0/assets/img/support.svg (added)
-
tags/2.2.0/assets/js (added)
-
tags/2.2.0/assets/js/colorpicker.js (added)
-
tags/2.2.0/assets/js/index.php (added)
-
tags/2.2.0/assets/js/notice.js (added)
-
tags/2.2.0/assets/js/notify.js (added)
-
tags/2.2.0/assets/js/settings.js (added)
-
tags/2.2.0/assets/js/sidebar.js (added)
-
tags/2.2.0/assets/js/tree.js (added)
-
tags/2.2.0/assets/vendor (added)
-
tags/2.2.0/assets/vendor/angular-light (added)
-
tags/2.2.0/assets/vendor/angular-light/LICENSE (added)
-
tags/2.2.0/assets/vendor/angular-light/angular-light.js (added)
-
tags/2.2.0/assets/vendor/cookie (added)
-
tags/2.2.0/assets/vendor/cookie/LICENSE (added)
-
tags/2.2.0/assets/vendor/cookie/cookie.js (added)
-
tags/2.2.0/assets/vendor/feather-icons (added)
-
tags/2.2.0/assets/vendor/feather-icons/LICENSE (added)
-
tags/2.2.0/assets/vendor/feather-icons/feather.js (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons.json (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/activity.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/airplay.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/alert-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/alert-octagon.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/alert-triangle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/align-center.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/align-justify.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/align-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/align-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/anchor.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/aperture.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/archive.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-down-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-down-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-down-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-left-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-right-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-up-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-up-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-up-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/arrow-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/at-sign.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/award.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bar-chart-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bar-chart.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/battery-charging.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/battery.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bell-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bell.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bluetooth.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bold.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/book-open.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/book.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/bookmark.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/box.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/briefcase.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/calendar.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/camera-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/camera.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cast.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/check-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/check-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/check.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevron-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevron-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevron-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevron-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevrons-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevrons-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevrons-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chevrons-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/chrome.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/clipboard.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/clock.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud-drizzle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud-lightning.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud-rain.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud-snow.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cloud.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/code.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/codepen.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/codesandbox.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/coffee.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/columns.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/command.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/compass.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/copy.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-down-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-down-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-left-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-left-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-right-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-right-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-up-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/corner-up-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/cpu.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/credit-card.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/crop.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/crosshair.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/database.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/delete.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/disc.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/divide-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/divide-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/divide.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/dollar-sign.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/download-cloud.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/download.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/dribbble.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/droplet.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/edit-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/edit-3.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/edit.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/external-link.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/eye-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/eye.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/facebook.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/fast-forward.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/feather.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/figma.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/file-minus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/file-plus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/file-text.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/file.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/film.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/filter.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/flag.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/folder-minus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/folder-plus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/folder.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/framer.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/frown.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/gift.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/git-branch.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/git-commit.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/git-merge.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/git-pull-request.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/github.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/gitlab.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/globe.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/grid.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/hard-drive.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/hash.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/headphones.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/heart.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/help-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/hexagon.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/home.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/image.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/inbox.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/info.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/instagram.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/italic.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/key.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/layers.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/layout.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/life-buoy.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/link-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/link.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/linkedin.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/list.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/loader.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/lock.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/log-in.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/log-out.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/mail.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/map-pin.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/map.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/maximize-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/maximize.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/meh.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/menu.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/message-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/message-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/mic-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/mic.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/minimize-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/minimize.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/minus-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/minus-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/minus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/monitor.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/moon.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/more-horizontal.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/more-vertical.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/mouse-pointer.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/move.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/music.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/navigation-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/navigation.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/octagon.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/package.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/paperclip.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/pause-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/pause.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/pen-tool.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/percent.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-call.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-forwarded.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-incoming.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-missed.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone-outgoing.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/phone.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/pie-chart.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/play-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/play.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/plus-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/plus-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/plus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/pocket.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/power.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/printer.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/radio.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/refresh-ccw.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/refresh-cw.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/repeat.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/rewind.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/rotate-ccw.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/rotate-cw.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/rss.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/save.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/scissors.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/search.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/send.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/server.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/settings.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/share-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/share.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/shield-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/shield.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/shopping-bag.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/shopping-cart.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/shuffle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/sidebar.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/skip-back.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/skip-forward.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/slack.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/slash.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/sliders.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/smartphone.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/smile.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/speaker.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/star.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/stop-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/sun.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/sunrise.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/sunset.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/table.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/tablet.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/tag.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/target.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/terminal.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/thermometer.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/thumbs-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/thumbs-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/toggle-left.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/toggle-right.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/tool.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/trash-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/trash.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/trello.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/trending-down.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/trending-up.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/triangle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/truck.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/tv.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/twitch.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/twitter.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/type.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/umbrella.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/underline.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/unlock.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/upload-cloud.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/upload.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/user-check.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/user-minus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/user-plus.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/user-x.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/user.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/users.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/video-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/video.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/voicemail.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/volume-1.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/volume-2.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/volume-x.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/volume.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/watch.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/wifi-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/wifi.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/wind.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/x-circle.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/x-octagon.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/x-square.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/x.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/youtube.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/zap-off.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/zap.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/zoom-in.svg (added)
-
tags/2.2.0/assets/vendor/feather-icons/icons/zoom-out.svg (added)
-
tags/2.2.0/assets/vendor/url (added)
-
tags/2.2.0/assets/vendor/url/LICENSE (added)
-
tags/2.2.0/assets/vendor/url/url.js (added)
-
tags/2.2.0/freemius (added)
-
tags/2.2.0/freemius/LICENSE.txt (added)
-
tags/2.2.0/freemius/assets (added)
-
tags/2.2.0/freemius/assets/css (added)
-
tags/2.2.0/freemius/assets/css/admin (added)
-
tags/2.2.0/freemius/assets/css/admin/account.css (added)
-
tags/2.2.0/freemius/assets/css/admin/add-ons.css (added)
-
tags/2.2.0/freemius/assets/css/admin/affiliation.css (added)
-
tags/2.2.0/freemius/assets/css/admin/checkout.css (added)
-
tags/2.2.0/freemius/assets/css/admin/clone-resolution.css (added)
-
tags/2.2.0/freemius/assets/css/admin/common.css (added)
-
tags/2.2.0/freemius/assets/css/admin/connect.css (added)
-
tags/2.2.0/freemius/assets/css/admin/debug.css (added)
-
tags/2.2.0/freemius/assets/css/admin/dialog-boxes.css (added)
-
tags/2.2.0/freemius/assets/css/admin/gdpr-optin-notice.css (added)
-
tags/2.2.0/freemius/assets/css/admin/index.php (added)
-
tags/2.2.0/freemius/assets/css/admin/optout.css (added)
-
tags/2.2.0/freemius/assets/css/admin/plugins.css (added)
-
tags/2.2.0/freemius/assets/css/customizer.css (added)
-
tags/2.2.0/freemius/assets/css/index.php (added)
-
tags/2.2.0/freemius/assets/img (added)
-
tags/2.2.0/freemius/assets/img/index.php (added)
-
tags/2.2.0/freemius/assets/img/plugin-icon.png (added)
-
tags/2.2.0/freemius/assets/img/theme-icon.png (added)
-
tags/2.2.0/freemius/assets/index.php (added)
-
tags/2.2.0/freemius/assets/js (added)
-
tags/2.2.0/freemius/assets/js/index.php (added)
-
tags/2.2.0/freemius/assets/js/nojquery.ba-postmessage.js (added)
-
tags/2.2.0/freemius/assets/js/postmessage.js (added)
-
tags/2.2.0/freemius/config.php (added)
-
tags/2.2.0/freemius/includes (added)
-
tags/2.2.0/freemius/includes/class-freemius-abstract.php (added)
-
tags/2.2.0/freemius/includes/class-freemius.php (added)
-
tags/2.2.0/freemius/includes/class-fs-admin-notices.php (added)
-
tags/2.2.0/freemius/includes/class-fs-api.php (added)
-
tags/2.2.0/freemius/includes/class-fs-garbage-collector.php (added)
-
tags/2.2.0/freemius/includes/class-fs-lock.php (added)
-
tags/2.2.0/freemius/includes/class-fs-logger.php (added)
-
tags/2.2.0/freemius/includes/class-fs-options.php (added)
-
tags/2.2.0/freemius/includes/class-fs-plugin-updater.php (added)
-
tags/2.2.0/freemius/includes/class-fs-security.php (added)
-
tags/2.2.0/freemius/includes/class-fs-storage.php (added)
-
tags/2.2.0/freemius/includes/class-fs-user-lock.php (added)
-
tags/2.2.0/freemius/includes/customizer (added)
-
tags/2.2.0/freemius/includes/customizer/class-fs-customizer-support-section.php (added)
-
tags/2.2.0/freemius/includes/customizer/class-fs-customizer-upsell-control.php (added)
-
tags/2.2.0/freemius/includes/customizer/index.php (added)
-
tags/2.2.0/freemius/includes/debug (added)
-
tags/2.2.0/freemius/includes/debug/class-fs-debug-bar-panel.php (added)
-
tags/2.2.0/freemius/includes/debug/debug-bar-start.php (added)
-
tags/2.2.0/freemius/includes/debug/index.php (added)
-
tags/2.2.0/freemius/includes/entities (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-affiliate-terms.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-affiliate.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-billing.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-entity.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-payment.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-plugin-info.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-plugin-license.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-plugin-plan.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-plugin-tag.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-plugin.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-pricing.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-scope-entity.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-site.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-subscription.php (added)
-
tags/2.2.0/freemius/includes/entities/class-fs-user.php (added)
-
tags/2.2.0/freemius/includes/entities/index.php (added)
-
tags/2.2.0/freemius/includes/fs-core-functions.php (added)
-
tags/2.2.0/freemius/includes/fs-essential-functions.php (added)
-
tags/2.2.0/freemius/includes/fs-html-escaping-functions.php (added)
-
tags/2.2.0/freemius/includes/fs-plugin-info-dialog.php (added)
-
tags/2.2.0/freemius/includes/index.php (added)
-
tags/2.2.0/freemius/includes/l10n.php (added)
-
tags/2.2.0/freemius/includes/managers (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-admin-menu-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-admin-notice-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-cache-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-clone-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-gdpr-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-key-value-storage.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-license-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-option-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-permission-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-plan-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/class-fs-plugin-manager.php (added)
-
tags/2.2.0/freemius/includes/managers/index.php (added)
-
tags/2.2.0/freemius/includes/sdk (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/ArgumentNotExistException.php (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/EmptyArgumentException.php (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/Exception.php (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/InvalidArgumentException.php (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/OAuthException.php (added)
-
tags/2.2.0/freemius/includes/sdk/Exceptions/index.php (added)
-
tags/2.2.0/freemius/includes/sdk/FreemiusBase.php (added)
-
tags/2.2.0/freemius/includes/sdk/FreemiusWordPress.php (added)
-
tags/2.2.0/freemius/includes/sdk/LICENSE.txt (added)
-
tags/2.2.0/freemius/includes/sdk/index.php (added)
-
tags/2.2.0/freemius/includes/supplements (added)
-
tags/2.2.0/freemius/includes/supplements/fs-essential-functions-1.1.7.1.php (added)
-
tags/2.2.0/freemius/includes/supplements/fs-essential-functions-2.2.1.php (added)
-
tags/2.2.0/freemius/includes/supplements/fs-migration-2.5.1.php (added)
-
tags/2.2.0/freemius/includes/supplements/index.php (added)
-
tags/2.2.0/freemius/index.php (added)
-
tags/2.2.0/freemius/languages (added)
-
tags/2.2.0/freemius/languages/freemius-cs_CZ.mo (added)
-
tags/2.2.0/freemius/languages/freemius-da_DK.mo (added)
-
tags/2.2.0/freemius/languages/freemius-de_DE.mo (added)
-
tags/2.2.0/freemius/languages/freemius-es_ES.mo (added)
-
tags/2.2.0/freemius/languages/freemius-fr_FR.mo (added)
-
tags/2.2.0/freemius/languages/freemius-he_IL.mo (added)
-
tags/2.2.0/freemius/languages/freemius-hu_HU.mo (added)
-
tags/2.2.0/freemius/languages/freemius-it_IT.mo (added)
-
tags/2.2.0/freemius/languages/freemius-ja.mo (added)
-
tags/2.2.0/freemius/languages/freemius-nl_NL.mo (added)
-
tags/2.2.0/freemius/languages/freemius-ru_RU.mo (added)
-
tags/2.2.0/freemius/languages/freemius-ta.mo (added)
-
tags/2.2.0/freemius/languages/freemius-zh_CN.mo (added)
-
tags/2.2.0/freemius/languages/freemius.pot (added)
-
tags/2.2.0/freemius/languages/index.php (added)
-
tags/2.2.0/freemius/require.php (added)
-
tags/2.2.0/freemius/start.php (added)
-
tags/2.2.0/freemius/templates (added)
-
tags/2.2.0/freemius/templates/account (added)
-
tags/2.2.0/freemius/templates/account.php (added)
-
tags/2.2.0/freemius/templates/account/billing.php (added)
-
tags/2.2.0/freemius/templates/account/index.php (added)
-
tags/2.2.0/freemius/templates/account/partials (added)
-
tags/2.2.0/freemius/templates/account/partials/activate-license-button.php (added)
-
tags/2.2.0/freemius/templates/account/partials/addon.php (added)
-
tags/2.2.0/freemius/templates/account/partials/deactivate-license-button.php (added)
-
tags/2.2.0/freemius/templates/account/partials/disconnect-button.php (added)
-
tags/2.2.0/freemius/templates/account/partials/index.php (added)
-
tags/2.2.0/freemius/templates/account/partials/site.php (added)
-
tags/2.2.0/freemius/templates/account/payments.php (added)
-
tags/2.2.0/freemius/templates/add-ons.php (added)
-
tags/2.2.0/freemius/templates/add-trial-to-pricing.php (added)
-
tags/2.2.0/freemius/templates/admin-notice.php (added)
-
tags/2.2.0/freemius/templates/ajax-loader.php (added)
-
tags/2.2.0/freemius/templates/api-connectivity-message-js.php (added)
-
tags/2.2.0/freemius/templates/auto-installation.php (added)
-
tags/2.2.0/freemius/templates/checkout.php (added)
-
tags/2.2.0/freemius/templates/clone-resolution-js.php (added)
-
tags/2.2.0/freemius/templates/connect (added)
-
tags/2.2.0/freemius/templates/connect.php (added)
-
tags/2.2.0/freemius/templates/connect/index.php (added)
-
tags/2.2.0/freemius/templates/connect/permission.php (added)
-
tags/2.2.0/freemius/templates/connect/permissions-group.php (added)
-
tags/2.2.0/freemius/templates/contact.php (added)
-
tags/2.2.0/freemius/templates/debug (added)
-
tags/2.2.0/freemius/templates/debug.php (added)
-
tags/2.2.0/freemius/templates/debug/api-calls.php (added)
-
tags/2.2.0/freemius/templates/debug/index.php (added)
-
tags/2.2.0/freemius/templates/debug/logger.php (added)
-
tags/2.2.0/freemius/templates/debug/plugins-themes-sync.php (added)
-
tags/2.2.0/freemius/templates/debug/scheduled-crons.php (added)
-
tags/2.2.0/freemius/templates/email.php (added)
-
tags/2.2.0/freemius/templates/forms (added)
-
tags/2.2.0/freemius/templates/forms/affiliation.php (added)
-
tags/2.2.0/freemius/templates/forms/data-debug-mode.php (added)
-
tags/2.2.0/freemius/templates/forms/deactivation (added)
-
tags/2.2.0/freemius/templates/forms/deactivation/contact.php (added)
-
tags/2.2.0/freemius/templates/forms/deactivation/form.php (added)
-
tags/2.2.0/freemius/templates/forms/deactivation/index.php (added)
-
tags/2.2.0/freemius/templates/forms/deactivation/retry-skip.php (added)
-
tags/2.2.0/freemius/templates/forms/email-address-update.php (added)
-
tags/2.2.0/freemius/templates/forms/index.php (added)
-
tags/2.2.0/freemius/templates/forms/license-activation.php (added)
-
tags/2.2.0/freemius/templates/forms/optout.php (added)
-
tags/2.2.0/freemius/templates/forms/premium-versions-upgrade-handler.php (added)
-
tags/2.2.0/freemius/templates/forms/premium-versions-upgrade-metadata.php (added)
-
tags/2.2.0/freemius/templates/forms/resend-key.php (added)
-
tags/2.2.0/freemius/templates/forms/subscription-cancellation.php (added)
-
tags/2.2.0/freemius/templates/forms/trial-start.php (added)
-
tags/2.2.0/freemius/templates/forms/user-change.php (added)
-
tags/2.2.0/freemius/templates/gdpr-optin-js.php (added)
-
tags/2.2.0/freemius/templates/index.php (added)
-
tags/2.2.0/freemius/templates/js (added)
-
tags/2.2.0/freemius/templates/js/index.php (added)
-
tags/2.2.0/freemius/templates/js/jquery.content-change.php (added)
-
tags/2.2.0/freemius/templates/js/open-license-activation.php (added)
-
tags/2.2.0/freemius/templates/js/permissions.php (added)
-
tags/2.2.0/freemius/templates/js/style-premium-theme.php (added)
-
tags/2.2.0/freemius/templates/partials (added)
-
tags/2.2.0/freemius/templates/partials/index.php (added)
-
tags/2.2.0/freemius/templates/partials/network-activation.php (added)
-
tags/2.2.0/freemius/templates/plugin-icon.php (added)
-
tags/2.2.0/freemius/templates/plugin-info (added)
-
tags/2.2.0/freemius/templates/plugin-info/description.php (added)
-
tags/2.2.0/freemius/templates/plugin-info/features.php (added)
-
tags/2.2.0/freemius/templates/plugin-info/index.php (added)
-
tags/2.2.0/freemius/templates/plugin-info/screenshots.php (added)
-
tags/2.2.0/freemius/templates/powered-by.php (added)
-
tags/2.2.0/freemius/templates/pricing.php (added)
-
tags/2.2.0/freemius/templates/secure-https-header.php (added)
-
tags/2.2.0/freemius/templates/sticky-admin-notice-js.php (added)
-
tags/2.2.0/freemius/templates/tabs-capture-js.php (added)
-
tags/2.2.0/freemius/templates/tabs.php (added)
-
tags/2.2.0/includes (added)
-
tags/2.2.0/includes/Blocks (added)
-
tags/2.2.0/includes/Blocks/GalleryBlock.php (added)
-
tags/2.2.0/includes/Fallbacks (added)
-
tags/2.2.0/includes/Fallbacks/delete-old-plugin-data.php (added)
-
tags/2.2.0/includes/Fallbacks/index.php (added)
-
tags/2.2.0/includes/Fallbacks/plugin-exist.php (added)
-
tags/2.2.0/includes/Fallbacks/plugin-incompatible.php (added)
-
tags/2.2.0/includes/Models (added)
-
tags/2.2.0/includes/Models/ConfigModel.php (added)
-
tags/2.2.0/includes/Models/FolderTypesModel.php (added)
-
tags/2.2.0/includes/Models/FoldersModel.php (added)
-
tags/2.2.0/includes/Models/HelperModel.php (added)
-
tags/2.2.0/includes/Models/ImportModel.php (added)
-
tags/2.2.0/includes/Models/SecurityProfilesModel.php (added)
-
tags/2.2.0/includes/Models/UserModel.php (added)
-
tags/2.2.0/includes/Models/index.php (added)
-
tags/2.2.0/includes/Plugin.php (added)
-
tags/2.2.0/includes/Rest (added)
-
tags/2.2.0/includes/Rest/Controllers (added)
-
tags/2.2.0/includes/Rest/Controllers/ConfigController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/FolderTypesController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/FoldersController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/HelperController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/ImportController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/SecurityProfilesController.php (added)
-
tags/2.2.0/includes/Rest/Controllers/index.php (added)
-
tags/2.2.0/includes/Rest/Routes.php (added)
-
tags/2.2.0/includes/Rest/index.php (added)
-
tags/2.2.0/includes/System (added)
-
tags/2.2.0/includes/System/Folders.php (added)
-
tags/2.2.0/includes/System/Installer.php (added)
-
tags/2.2.0/includes/System/Notice.php (added)
-
tags/2.2.0/includes/System/Settings.php (added)
-
tags/2.2.0/includes/System/index.php (added)
-
tags/2.2.0/includes/Views (added)
-
tags/2.2.0/includes/Views/index.php (added)
-
tags/2.2.0/includes/Views/modal-confirm-clear-all.php (added)
-
tags/2.2.0/includes/Views/modal-confirm-delete.php (added)
-
tags/2.2.0/includes/Views/modal-folder-type.php (added)
-
tags/2.2.0/includes/Views/modal-security-profile-rights.php (added)
-
tags/2.2.0/includes/Views/modal-security-profile.php (added)
-
tags/2.2.0/includes/Views/modal-select-folder-type.php (added)
-
tags/2.2.0/includes/Views/modal-select-role.php (added)
-
tags/2.2.0/includes/Views/modal-select-security-profile.php (added)
-
tags/2.2.0/includes/Views/modal-select-user.php (added)
-
tags/2.2.0/includes/Views/proposal.php (added)
-
tags/2.2.0/includes/Views/settings.php (added)
-
tags/2.2.0/includes/Views/sidebar.php (added)
-
tags/2.2.0/includes/autoload.php (added)
-
tags/2.2.0/includes/index.php (added)
-
tags/2.2.0/index.php (added)
-
tags/2.2.0/languages (added)
-
tags/2.2.0/languages/index.php (added)
-
tags/2.2.0/mediacommander.php (added)
-
tags/2.2.0/readme.txt (added)
-
tags/2.2.0/vendor (added)
-
tags/2.2.0/vendor/autoload.php (added)
-
tags/2.2.0/vendor/composer (added)
-
tags/2.2.0/vendor/composer/ClassLoader.php (added)
-
tags/2.2.0/vendor/composer/InstalledVersions.php (added)
-
tags/2.2.0/vendor/composer/LICENSE (added)
-
tags/2.2.0/vendor/composer/autoload_classmap.php (added)
-
tags/2.2.0/vendor/composer/autoload_files.php (added)
-
tags/2.2.0/vendor/composer/autoload_namespaces.php (added)
-
tags/2.2.0/vendor/composer/autoload_psr4.php (added)
-
tags/2.2.0/vendor/composer/autoload_real.php (added)
-
tags/2.2.0/vendor/composer/autoload_static.php (added)
-
tags/2.2.0/vendor/composer/installed.json (added)
-
tags/2.2.0/vendor/composer/installed.php (added)
-
tags/2.2.0/vendor/composer/platform_check.php (added)
-
tags/2.2.0/vendor/maennchen (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/LICENSE (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/README.md (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/composer.json (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/ContentLength.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/FlySystem.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/Nginx.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/Options.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/PSR7Streams.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/StreamOutput.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/Symfony.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/Varnish.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/guides/index.rst (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/phpdoc.dist.xml (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/phpunit.xml.dist (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/psalm.xml (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Bigint.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/DeflateStream.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/EncodingException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/FileNotFoundException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/FileNotReadableException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/IncompatibleOptionsException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/OverflowException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/File.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Option (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Option/Archive.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Option/File.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Option/Method.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Option/Version.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/Stream.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/src/ZipStream.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test/BigintTest.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test/ZipStreamTest.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test/bootstrap.php (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test/bug (added)
-
tags/2.2.0/vendor/maennchen/zipstream-php/test/bug/BugHonorFileTimeTest.php (added)
-
tags/2.2.0/vendor/myclabs (added)
-
tags/2.2.0/vendor/myclabs/php-enum (added)
-
tags/2.2.0/vendor/myclabs/php-enum/LICENSE (added)
-
tags/2.2.0/vendor/myclabs/php-enum/README.md (added)
-
tags/2.2.0/vendor/myclabs/php-enum/SECURITY.md (added)
-
tags/2.2.0/vendor/myclabs/php-enum/composer.json (added)
-
tags/2.2.0/vendor/myclabs/php-enum/src (added)
-
tags/2.2.0/vendor/myclabs/php-enum/src/Enum.php (added)
-
tags/2.2.0/vendor/myclabs/php-enum/src/PHPUnit (added)
-
tags/2.2.0/vendor/myclabs/php-enum/src/PHPUnit/Comparator.php (added)
-
tags/2.2.0/vendor/myclabs/php-enum/stubs (added)
-
tags/2.2.0/vendor/myclabs/php-enum/stubs/Stringable.php (added)
-
tags/2.2.0/vendor/psr (added)
-
tags/2.2.0/vendor/psr/http-message (added)
-
tags/2.2.0/vendor/psr/http-message/CHANGELOG.md (added)
-
tags/2.2.0/vendor/psr/http-message/LICENSE (added)
-
tags/2.2.0/vendor/psr/http-message/README.md (added)
-
tags/2.2.0/vendor/psr/http-message/composer.json (added)
-
tags/2.2.0/vendor/psr/http-message/docs (added)
-
tags/2.2.0/vendor/psr/http-message/docs/PSR7-Interfaces.md (added)
-
tags/2.2.0/vendor/psr/http-message/docs/PSR7-Usage.md (added)
-
tags/2.2.0/vendor/psr/http-message/src (added)
-
tags/2.2.0/vendor/psr/http-message/src/MessageInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/RequestInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/ResponseInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/ServerRequestInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/StreamInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/UploadedFileInterface.php (added)
-
tags/2.2.0/vendor/psr/http-message/src/UriInterface.php (added)
-
tags/2.2.0/vendor/symfony (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/LICENSE (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Mbstring.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/README.md (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources/unidata (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources/unidata/caseFolding.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources/unidata/lowerCase.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources/unidata/titleCaseRegexp.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/Resources/unidata/upperCase.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/bootstrap.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/bootstrap80.php (added)
-
tags/2.2.0/vendor/symfony/polyfill-mbstring/composer.json (added)
-
trunk/assets/blocks (added)
-
trunk/assets/blocks/galleryblock (added)
-
trunk/assets/blocks/galleryblock/block.json (added)
-
trunk/assets/blocks/galleryblock/index.asset.php (added)
-
trunk/assets/blocks/galleryblock/index.css (added)
-
trunk/assets/blocks/galleryblock/index.js (added)
-
trunk/assets/js/colorpicker.js (modified) (1 diff)
-
trunk/assets/js/notify.js (modified) (1 diff)
-
trunk/assets/js/settings.js (modified) (1 diff)
-
trunk/assets/js/sidebar.js (modified) (1 diff)
-
trunk/assets/js/tree.js (modified) (1 diff)
-
trunk/assets/vendor/angular-light/angular-light.js (modified) (1 diff)
-
trunk/assets/vendor/cookie/cookie.js (modified) (1 diff)
-
trunk/assets/vendor/feather-icons/feather.js (modified) (1 diff)
-
trunk/assets/vendor/url/url.js (modified) (1 diff)
-
trunk/includes/Blocks (added)
-
trunk/includes/Blocks/GalleryBlock.php (added)
-
trunk/includes/Models/ConfigModel.php (modified) (6 diffs)
-
trunk/includes/Models/FoldersModel.php (modified) (1 diff)
-
trunk/includes/Plugin.php (modified) (1 diff)
-
trunk/includes/System/Folders.php (modified) (1 diff)
-
trunk/mediacommander.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mediacommander/trunk/assets/js/colorpicker.js
r3083414 r3101075 1 !function(r){"use strict";const t=function(){const n=new WeakMap;function o(o,e,c){n.set(this,{type:e?"embed":"popup",$parent:e||r("body"),$container:null,$element:null,selectedColor:o||null,colors:[],callback:c||null,offset:{top:0,left:0}}),this._init()}return o.prototype={_init:function(){var o=n.get(this);this._buildColors(),this._buildDOM(),this._bind(),this._selectColor(o.selectedColor)},_buildDOM:function(){var o=n.get(this),e='<div><div id="mcmd-colorpicker-saved-colors" class="mcmd-colorpicker-colors">'+this._renderSavedColors()+'</div><div class="mcmd-colorpicker-line"></div><div class="mcmd-colorpicker-colors">'+this._renderMainColors()+'</div><div class="mcmd-colorpicker-line"></div><div class="mcmd-colorpicker-row"><div class="mcmd-colorpicker-input-text-wrap"><input class="mcmd-colorpicker-input-text" type="text" maxlength="7"><i class="mcmd-colorpicker-clear">×</i></div><div class="mcmd-colorpicker-input-color-wrap"><input class="mcmd-colorpicker-input-color" type="color" value="#ffffff"><div class="mcmd-colorpicker-preview-wrap"><div class="mcmd-colorpicker-preview"></div></div></div><div class="mcmd-colorpicker-button mcmd-colorpicker-button-submit">OK</div></div></div>';o.$container=r(e).toggleClass("mcmd-colorpicker-embed","embed"==o.type).toggleClass("mcmd-colorpicker-popup","popup"==o.type),o.$parent.append(o.$container)},_bind:function(){var o=n.get(this);o.$container.on("click",".mcmd-colorpicker-colors .mcmd-colorpicker-color",this._clickColor.bind(this)),o.$container.on("dblclick",".mcmd-colorpicker-colors .mcmd-colorpicker-color",this._dblclickColor.bind(this)),o.$container.on("click",".mcmd-colorpicker-clear",this._clearColor.bind(this)),o.$container.on("click",".mcmd-colorpicker-button-submit",this._submit.bind(this)),o.$container.find(".mcmd-colorpicker-input-text").on("input",this._setColorFromInput.bind(this)),o.$container.find(".mcmd-colorpicker-input-color").on("input",this._setColorFromPreview.bind(this)),r(window).on("resize",this._resize.bind(this)),document.addEventListener("mousedown",this._mousedown.bind(this),{capture:!0})},_renderMainColors:function(){var e=n.get(this);let c="";for(let o=0;o<3;o++){c+='<div class="mcmd-colorpicker-row">';for(const r of e.colors[o])c+='<div class="mcmd-colorpicker-color" data-color="'+r+'" style="background-color:'+r+'"></div>';c+="</div>"}return c},_renderSavedColors:function(){var o=n.get(this),e=Cookies.get("mcmd-colorpicker-colors")?JSON.parse(Cookies.get("mcmd-colorpicker-colors")):[null,null,null,null,null];let c="";c+='<div class="mcmd-colorpicker-row"><div class="mcmd-colorpicker-color mcmd-colorpicker-color-save" title="add to pallete"></div>';for(const t in o.colors[3]){var r=e[t]||o.colors[3][t];c+='<div class="mcmd-colorpicker-color" data-color="'+r+'" style="background-color:'+r+'"></div>'}return c+="</div>"},_buildColors:function(){var o=n.get(this);o.colors.push(["#e49086","#f2b78f","#fde7ab","#cddf7b","#8fcaf2","#db96d9"]),o.colors.push(["#d35141","#e98746","#fbd25e","#b3cf3c","#46a8e9","#c65bbb"]),o.colors.push(["#aa2b22","#c85f19","#fabc0f","#819526","#1981c8","#9d3aa7"]),o.colors.push(["#000000","#222222","#444444","#666666","#888888"])},_show:function(o){var e=n.get(this);e.$element=r(o.currentTarget),this._place(e.$element),this._selectColor(this.get(e.$element)),e.$container.find("#mcmd-colorpicker-saved-colors").empty().append(this._renderSavedColors()),e.$container.addClass("mcmd-active")},_close:function(){var o=n.get(this);o.$element=null,o.$container.removeClass("mcmd-active")},_mousedown:function(o){var e=n.get(this);!e.$element||e.$element.is(o.target)||e.$container.is(o.target)||e.$container.find(o.target).length||this._close()},_place:function(o){var e=n.get(this),c=document.documentElement,r=(window.scrollX||c.scrollLeft)-(c.clientLeft||0),c=(window.scrollY||c.scrollTop)-(c.clientTop||0),t=o.offset();const l=t.top-c,i=t.left-r;c=o.outerHeight(!1);e.$container.css({top:l+e.offset.top+c,left:i+e.offset.left})},_resize:function(){var o=n.get(this);o.$element&&this._place(o.$element)},_selectColor:function(o){var e=n.get(this);o&&0!=o.length?(e.selectedColor=o,r(".mcmd-colorpicker-input-text",e.$container).val(o),r(".mcmd-colorpicker-input-color",e.$container).val(o),r(".mcmd-colorpicker-preview",e.$container).css({background:o||""})):(e.selectedColor=null,r(".mcmd-colorpicker-input-text",e.$container).val(""),r(".mcmd-colorpicker-input-color",e.$container).val("#ffffff"),r(".mcmd-colorpicker-preview",e.$container).css({background:""}))},_clearColor:function(){this._selectColor()},_saveColor:function(){var o=n.get(this);if(o.selectedColor){var e=Cookies.get("mcmd-colorpicker-colors")?JSON.parse(Cookies.get("mcmd-colorpicker-colors")):[null,null,null,null,null,null];if(e[0]!==o.selectedColor){for(let o=e.length-1;0<o;o--)e[o]=e[o-1];e[0]=o.selectedColor,Cookies.set("mcmd-colorpicker-colors",JSON.stringify(e))}o.$container.find("#mcmd-colorpicker-saved-colors").html(this._renderSavedColors())}},_clickColor:function(o){r(o.currentTarget).hasClass("mcmd-colorpicker-color-save")?this._saveColor():this._selectColor(r(o.currentTarget).attr("data-color"))},_dblclickColor:function(o){r(o.currentTarget).hasClass("mcmd-colorpicker-color-save")||(this._selectColor(r(o.currentTarget).attr("data-color")),this._submit())},_setColorFromInput:function(o){var e=n.get(this);e.selectedColor=r(".mcmd-colorpicker-input-text",e.$container).val(),"#"!=e.selectedColor[0]&&(e.selectedColor="#"+e.selectedColor,r(".mcmd-colorpicker-input-text",e.$container).val(e.selectedColor)),0<e.selectedColor.length?(r(".mcmd-colorpicker-input-color",e.$container).val(e.selectedColor),r(".mcmd-colorpicker-preview",e.$container).css({background:e.selectedColor||""})):(r(".mcmd-colorpicker-input-color",e.$container).val("#fff"),r(".mcmd-colorpicker-preview",e.$container).css({background:""}))},_setColorFromPreview:function(o){this._selectColor(o.target.value)},_submit:function(){var o=n.get(this);o.$element?o.$element.attr({"data-color":o.selectedColor}).css({background:o.selectedColor||""}).trigger("color",o.selectedColor):o.callback&&"function"==typeof o.callback&&o.callback.call(null,o.selectedColor),this._close()},set:function(o,e,c){var r=n.get(this);r.offset.top=c&&c.top?c.top:0,r.offset.left=c&&c.left?c.left:0,o.data("colorpicker")||o.on("click",this._show.bind(this)),o.data({colorpicker:!0}).attr({"data-color":e||null}).css({background:e||""})},get:function(o){return o.data("colorpicker")&&(o=o.attr("data-color"))?o.toUpperCase():null}},o}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.COLORPICKER=function(o,e,c){return new t(o,e,c)}}(jQuery);1 !function(r){"use strict";const t=function(){const i=new WeakMap;function o(o,e,c){i.set(this,{type:e?"embed":"popup",$parent:e||r("body"),$container:null,$element:null,selectedColor:o||null,colors:[],callback:c||null,offset:{top:0,left:0}}),this._init()}return o.prototype={_init:function(){var o=i.get(this);this._buildColors(),this._buildDOM(),this._bind(),this._selectColor(o.selectedColor)},_buildDOM:function(){var o=i.get(this),e='<div><div id="mcmd-colorpicker-saved-colors" class="mcmd-colorpicker-colors">'+this._renderSavedColors()+'</div><div class="mcmd-colorpicker-line"></div><div class="mcmd-colorpicker-colors">'+this._renderMainColors()+'</div><div class="mcmd-colorpicker-line"></div><div class="mcmd-colorpicker-row"><div class="mcmd-colorpicker-input-text-wrap"><input class="mcmd-colorpicker-input-text" type="text" maxlength="7"><i class="mcmd-colorpicker-clear">×</i></div><div class="mcmd-colorpicker-input-color-wrap"><input class="mcmd-colorpicker-input-color" type="color" value="#ffffff"><div class="mcmd-colorpicker-preview-wrap"><div class="mcmd-colorpicker-preview"></div></div></div><div class="mcmd-colorpicker-button mcmd-colorpicker-button-submit">OK</div></div></div>';o.$container=r(e).toggleClass("mcmd-colorpicker-embed","embed"==o.type).toggleClass("mcmd-colorpicker-popup","popup"==o.type),o.$parent.append(o.$container)},_bind:function(){var o=i.get(this);o.$container.on("click",".mcmd-colorpicker-colors .mcmd-colorpicker-color",this._clickColor.bind(this)),o.$container.on("dblclick",".mcmd-colorpicker-colors .mcmd-colorpicker-color",this._dblclickColor.bind(this)),o.$container.on("click",".mcmd-colorpicker-clear",this._clearColor.bind(this)),o.$container.on("click",".mcmd-colorpicker-button-submit",this._submit.bind(this)),o.$container.find(".mcmd-colorpicker-input-text").on("input",this._setColorFromInput.bind(this)),o.$container.find(".mcmd-colorpicker-input-color").on("input",this._setColorFromPreview.bind(this)),r(window).on("resize",this._resize.bind(this)),document.addEventListener("mousedown",this._mousedown.bind(this),{capture:!0})},_renderMainColors:function(){var e=i.get(this);let c="";for(let o=0;o<3;o++){c+='<div class="mcmd-colorpicker-row">';for(const r of e.colors[o])c+='<div class="mcmd-colorpicker-color" data-color="'+r+'" style="background-color:'+r+'"></div>';c+="</div>"}return c},_renderSavedColors:function(){var o=i.get(this),e=Cookies.get("mcmd-colorpicker-colors")?JSON.parse(Cookies.get("mcmd-colorpicker-colors")):[null,null,null,null,null];let c="";c+='<div class="mcmd-colorpicker-row"><div class="mcmd-colorpicker-color mcmd-colorpicker-color-save" title="add to pallete"></div>';for(const t in o.colors[3]){var r=e[t]||o.colors[3][t];c+='<div class="mcmd-colorpicker-color" data-color="'+r+'" style="background-color:'+r+'"></div>'}return c+="</div>"},_buildColors:function(){var o=i.get(this);o.colors.push(["#e49086","#f2b78f","#fde7ab","#cddf7b","#8fcaf2","#db96d9"]),o.colors.push(["#d35141","#e98746","#fbd25e","#b3cf3c","#46a8e9","#c65bbb"]),o.colors.push(["#aa2b22","#c85f19","#fabc0f","#819526","#1981c8","#9d3aa7"]),o.colors.push(["#000000","#222222","#444444","#666666","#888888"])},_show:function(o){var e=i.get(this);e.$element=r(o.currentTarget),this._place(e.$element),this._selectColor(this.get(e.$element)),e.$container.find("#mcmd-colorpicker-saved-colors").empty().append(this._renderSavedColors()),e.$container.addClass("mcmd-active")},_close:function(){var o=i.get(this);o.$element=null,o.$container.removeClass("mcmd-active")},_mousedown:function(o){var e=i.get(this);!e.$element||e.$element.is(o.target)||e.$container.is(o.target)||e.$container.find(o.target).length||this._close()},_place:function(o){var e=i.get(this),c=document.documentElement,r=(window.scrollX||c.scrollLeft)-(c.clientLeft||0),c=(window.scrollY||c.scrollTop)-(c.clientTop||0),t=o.offset(),l=t.top-c,t=t.left-r;c=o.outerHeight(!1),e.$container.css({top:l+e.offset.top+c,left:t+e.offset.left})},_resize:function(){var o=i.get(this);o.$element&&this._place(o.$element)},_selectColor:function(o){var e=i.get(this);o&&0!=o.length?(e.selectedColor=o,r(".mcmd-colorpicker-input-text",e.$container).val(o),r(".mcmd-colorpicker-input-color",e.$container).val(o),r(".mcmd-colorpicker-preview",e.$container).css({background:o||""})):(e.selectedColor=null,r(".mcmd-colorpicker-input-text",e.$container).val(""),r(".mcmd-colorpicker-input-color",e.$container).val("#ffffff"),r(".mcmd-colorpicker-preview",e.$container).css({background:""}))},_clearColor:function(){this._selectColor()},_saveColor:function(){var o=i.get(this);if(o.selectedColor){var e=Cookies.get("mcmd-colorpicker-colors")?JSON.parse(Cookies.get("mcmd-colorpicker-colors")):[null,null,null,null,null,null];if(e[0]!==o.selectedColor){for(let o=e.length-1;0<o;o--)e[o]=e[o-1];e[0]=o.selectedColor,Cookies.set("mcmd-colorpicker-colors",JSON.stringify(e))}o.$container.find("#mcmd-colorpicker-saved-colors").html(this._renderSavedColors())}},_clickColor:function(o){r(o.currentTarget).hasClass("mcmd-colorpicker-color-save")?this._saveColor():this._selectColor(r(o.currentTarget).attr("data-color"))},_dblclickColor:function(o){r(o.currentTarget).hasClass("mcmd-colorpicker-color-save")||(this._selectColor(r(o.currentTarget).attr("data-color")),this._submit())},_setColorFromInput:function(o){var e=i.get(this);e.selectedColor=r(".mcmd-colorpicker-input-text",e.$container).val(),"#"!=e.selectedColor[0]&&(e.selectedColor="#"+e.selectedColor,r(".mcmd-colorpicker-input-text",e.$container).val(e.selectedColor)),0<e.selectedColor.length?(r(".mcmd-colorpicker-input-color",e.$container).val(e.selectedColor),r(".mcmd-colorpicker-preview",e.$container).css({background:e.selectedColor||""})):(r(".mcmd-colorpicker-input-color",e.$container).val("#fff"),r(".mcmd-colorpicker-preview",e.$container).css({background:""}))},_setColorFromPreview:function(o){this._selectColor(o.target.value)},_submit:function(){var o=i.get(this);o.$element?o.$element.attr({"data-color":o.selectedColor}).css({background:o.selectedColor||""}).trigger("color",o.selectedColor):o.callback&&"function"==typeof o.callback&&o.callback.call(null,o.selectedColor),this._close()},set:function(o,e,c){var r=i.get(this);r.offset.top=c&&c.top?c.top:0,r.offset.left=c&&c.left?c.left:0,o.data("colorpicker")||o.on("click",this._show.bind(this)),o.data({colorpicker:!0}).attr({"data-color":e||null}).css({background:e||""})},get:function(o){return o.data("colorpicker")&&(o=o.attr("data-color"))?o.toUpperCase():null}},o}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.COLORPICKER=function(o,e,c){return new t(o,e,c)}}(jQuery); -
mediacommander/trunk/assets/js/notify.js
r3083414 r3101075 1 !function(d){"use strict";const n=function(){const e=new WeakMap;function n(){e.set(this,{$container:null,id:0}),this._init()}return n.prototype={_init:function(){this._buildDOM()},_buildDOM:function(){var n=e.get(this);n.$container=d("<div>").addClass("mcmd-notify-container"),d("body").append(n.$container)},_animationEvent:function(){var n,i=document.createElement("fakeelement"),t={animation:"animationend",MSAnimationEnd:"msAnimationEnd",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==i.style[n])return t[n];return null},_getNotify:function(n){ n=e.get(this).$container.find(`.mcmd-notify[data-id='${n}']`);return n.length?n:null},_showNotify:function(n,i,t){setTimeout(this.close.bind(this,i),t||4e3)},_removeNotify:function(n){n.remove()},show:function(n,i,t){var o=e.get(this),i=d("<div>").addClass("mcmd-notify").addClass(i).attr({"data-id":++o.id}),n=d("<div>").addClass("mcmd-title").html(n);return i.append(n),o.$container.append(i),i.removeClass("mcmd-fx-show mcmd-fx-hide"),i.addClass("mcmd-fx-show"),i.one(this._animationEvent(),this._showNotify.bind(this,i,o.id,t)),o.id},close:function(n){n=this._getNotify(n);n&&(n.removeClass("mcmd-fx-show mcmd-fx-hide"),n.addClass("mcmd-fx-hide"),n.one(this._animationEvent(),this._removeNotify.bind(this,n)))}},n}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.NOTIFY=function(){return new n}}(jQuery);1 !function(d){"use strict";const n=function(){const e=new WeakMap;function n(){e.set(this,{$container:null,id:0}),this._init()}return n.prototype={_init:function(){this._buildDOM()},_buildDOM:function(){var n=e.get(this);n.$container=d("<div>").addClass("mcmd-notify-container"),d("body").append(n.$container)},_animationEvent:function(){var n,i=document.createElement("fakeelement"),t={animation:"animationend",MSAnimationEnd:"msAnimationEnd",OAnimation:"oAnimationEnd",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"};for(n in t)if(void 0!==i.style[n])return t[n];return null},_getNotify:function(n){return(n=e.get(this).$container.find(`.mcmd-notify[data-id='${n}']`)).length?n:null},_showNotify:function(n,i,t){setTimeout(this.close.bind(this,i),t||4e3)},_removeNotify:function(n){n.remove()},show:function(n,i,t){var o=e.get(this),i=d("<div>").addClass("mcmd-notify").addClass(i).attr({"data-id":++o.id}),n=d("<div>").addClass("mcmd-title").html(n);return i.append(n),o.$container.append(i),i.removeClass("mcmd-fx-show mcmd-fx-hide"),i.addClass("mcmd-fx-show"),i.one(this._animationEvent(),this._showNotify.bind(this,i,o.id,t)),o.id},close:function(n){(n=this._getNotify(n))&&(n.removeClass("mcmd-fx-show mcmd-fx-hide"),n.addClass("mcmd-fx-hide"),n.one(this._animationEvent(),this._removeNotify.bind(this,n)))}},n}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.NOTIFY=function(){return new n}}(jQuery); -
mediacommander/trunk/assets/js/settings.js
r3092973 r3101075 1 !function(d){"use strict";const o={clone:e=>JSON.parse(JSON.stringify(e)),guid:()=>([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))},a={TABLE:{loading:!1,checked:!1,selected:null,items:[],view:{page:1,perpage:7,first:0,last:0,total:0},order:{column:null,type:null}}},n={alight:null,scope:null,ui:{loader:{count:0,timerId:null,$container:null},tabs:{items:["general","permissions","tools","gopro"],selected:0,zindex:4,fn:{is:e=>0<=n.ui.tabs.selected&&n.ui.tabs.selected<n.ui.tabs.items.length&&n.ui.tabs.items[n.ui.tabs.selected]==e,click:(e,a)=>{n.ui.tabs.items[n.ui.tabs.selected]!==a&&(d(e).css({"z-index":n.ui.tabs.zindex++}),n.ui.tabs.selected=n.ui.tabs.items.indexOf(a))}}}},default:{config:{roles:[],token:null,default_color:null,disable_counter:!1,disable_ajax:!1,infinite_scrolling:!1,disable_search_bar:!1,replace_media:!1,uninstall_fully:!1,media_hover_details:!1,media_hover_details_list:[]},securityprofiles:{profile:{id:null,owner:{type:null,id:null,title:null},access_type:{id:null,title:null},actions:{create:!1,view:!0,edit:!1,delete:!1,attach:!1}}}},data:{ready:!1,roles:[],media_hover_details:[],config:null,ticket:null,foldertypes:o.clone(a.TABLE),securityprofiles:o.clone(a.TABLE),export:{filename:null,url:null},import:{file:null,clear:!1,attachments:!1,plugins:null}},modal:{$container:null,templates:{},fn:{show:(i,a,t)=>{function s(e,a,t){a.guid=a.guid||o.guid();const s=d(e).attr({"data-modal-name":i,"data-modal-guid":a.guid}),l=(n.modal.$container.append(s),feather.replace({"stroke-width":2,width:22,height:22}),a.scope=n.alight(s.get(0),{App:n,Modal:a}),d("body").addClass("mcmd-modal-active"),this);setTimeout(()=>{s.addClass("mcmd-active"),t&&t.call(l)},100)}n.modal.templates[i]?s(n.modal.templates[i],a,t):n.fn.getData("template",{name:i}).done(e=>{n.modal.templates[i]=e,s(n.modal.templates[i],a,t)}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})},close:e=>{d(`[data-modal-guid='${e.guid}']`).removeClass("mcmd-active").remove(),0==d(".mcmd-modals").children().length&&d("body").removeClass("mcmd-modal-active"),e.scope.destroy(),e.scope=null}}},fn:{init:()=>{n.notify=new MEDIACOMMANDER.PLUGINS.NOTIFY,n.colorpicker=new MEDIACOMMANDER.PLUGINS.COLORPICKER;const e=d("#mcmd-app-settings");e.removeAttr("style"),n.fn.initDefaults(),n.fn.build(),d.when(n.fn.config.load(),n.fn.foldertypes.load(),n.fn.securityprofiles.load()).done(()=>{e.addClass("mcmd-active"),setTimeout(()=>{e.find(".mcmd-sidebar").addClass("mcmd-new-transition")},1e3)}),feather.replace({"stroke-width":2,width:22,height:22})},initDefaults:()=>{n.default.securityprofiles.profile.access_type={...n.globals.data.accesstypes.commonfolders},n.data.import.plugins=n.globals.data.plugins_to_import,n.data.ticket=n.globals.data.ticket,n.data.anonymous=n.globals.data.anonymous},build:()=>{n.ui.loader.$container=d("#mcmd-loader"),n.modal.$container=d("<div>").addClass("mcmd-modals").attr({tabindex:-1}),d("body").append(n.modal.$container).addClass("mcmd-app-settings-wrap")},loading:e=>{n.ui.loader.count+=e?1:-1,n.ui.loader.count=n.ui.loader.count<0?0:n.ui.loader.count,clearTimeout(n.ui.loader.timerId),n.ui.loader.count?n.ui.loader.$container.toggleClass("mcmd-active",!0):setTimeout(()=>{n.ui.loader.$container.toggleClass("mcmd-active",!1)},300)},processData:(e,a,t={})=>{const s=d.Deferred(); n.fn.loading(!0);e=d.ajax({url:n.globals.api.url+"/"+e,type:"GET"==a?"GET":"POST",cache:!1,dataType:"json",contentType:"application/json",headers:{"X-WP-Nonce":n.globals.api.nonce,"X-HTTP-Method-Override":a},data:"GET"==a?t:JSON.stringify(t)}).done(e=>{e&&e.success?s.resolve(e.data):s.reject()}).fail(()=>{s.reject()}).always(()=>{n.fn.loading(!1)});return{...s.promise(),abort:e.abort}},getData:(e,a={})=>n.fn.processData(e,"GET",a),createData:(e,a={})=>n.fn.processData(e,"POST",a),updateData:(e,a={})=>n.fn.processData(e,"PUT",a),deleteData:(e,a={})=>n.fn.processData(e,"DELETE",a),getTableView:(e,a)=>{var t=e.view.page,s=e.view.perpage?Math.ceil(a/e.view.perpage):1;return{page:t,pages:s,prev:1<t?t-1:null,next:t<s?t+1:null,perpage:e.view.perpage,first:(e.view.page-1)*e.view.perpage+1,last:e.view.page*e.view.perpage-Math.max(e.view.perpage-e.items.length,0),total:a}},selectOne:(e,a,t,s)=>{if(a)t.checked||(t.checked=a,(s||n.scope).scan());else{let e=!0;for(const l in t.items)if(t.items[l].checked){e=!1;break}e&&(t.checked=a,(s||n.scope).scan())}},selectAll:(e,a,t,s)=>{for(const l in t.items)t.items[l].checked=a;(s||n.scope).scan()},config:{load:()=>{const l=d.Deferred();return d.when(n.fn.getData("roles"),n.fn.getData("media-hover-details"),n.fn.getData("config")).done((e,a,t)=>{if(n.data.roles=e.items,n.data.media_hover_details=a.items,n.data.config=d.extend(!0,{},n.default.config,t),n.data.config)for(var s in n.data.config)n.default.config.hasOwnProperty(s)||delete n.data.config[s];n.scope.scan();e=d("#mcmd-default-folder-color");n.colorpicker.set(e,n.data.config.default_color,{top:6,left:-4}),e.on("color",n.fn.config.onColor),l.resolve()}),{...l.promise()}},onColor:(e,a)=>{n.data.config.default_color=a||null},onColorClick:e=>{n.data.ticket||(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),e.stopImmediatePropagation())},onAccessRoleChange:(e,a)=>{var t;n.data.ticket?(t=n.data.config.roles.indexOf(a.id),e.target.checked?-1==t&&n.data.config.roles.push(a.id):n.data.config.roles.splice(t,1)):(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),a=d(e.target).prop("checked"),d(e.target).prop("checked",!a))},isAccessRoleChecked:e=>-1!==n.data.config.roles.indexOf(e.id),onMediaDetailsChange:(e,a)=>{var t=n.data.config.media_hover_details_list.indexOf(a.id);e.target.checked?-1==t&&n.data.config.media_hover_details_list.push(a.id):n.data.config.media_hover_details_list.splice(t,1)},isMediaDetailsChecked:e=>-1!==n.data.config.media_hover_details_list.indexOf(e.id),onCheckboxChange:e=>{n.data.ticket||(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),e.preventDefault(),e.stopImmediatePropagation())},save:()=>{n.fn.loading(!0),n.fn.updateData("config",n.data.config).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)})}},foldertypes:{load:a=>{function t(){return n.data.foldertypes.loading=!0,n.scope.scan(),n.fn.getData("foldertypes",{page:n.data.foldertypes.view.page,perpage:n.data.foldertypes.view.perpage}).done(e=>{n.data.foldertypes.items=e.items.map(e=>({...e,checked:!1})),n.data.foldertypes.view=n.fn.getTableView(n.data.foldertypes,e.total),n.data.foldertypes.checked=!1,n.data.foldertypes.selected=null,n.data.foldertypes.loading=!1,n.scope.scan()})}return void 0!==a?n.fn.getData("foldertypes").done(e=>{a=Math.min(Math.max(a,1),Math.ceil(e.total/n.data.foldertypes.view.perpage)),n.data.foldertypes.view.page=a,n.data.foldertypes.view.total=e.total,t()}):t()},prev:()=>{n.fn.foldertypes.load(n.data.foldertypes.view.prev)},next:()=>{n.fn.foldertypes.load(n.data.foldertypes.view.next)},isLock:e=>!n.data.ticket&&!["attachment","users"].includes(e.type),select:e=>{n.data.foldertypes.selected=n.data.foldertypes.selected!==e.id?e.id:null},dblclick:e=>{n.data.foldertypes.selected=e.id,n.fn.foldertypes.edit()},createEdit:t=>{n.data.foldertypes.loading=!0,n.fn.getData("securityprofiles/all").done(e=>{const a={data:{item:t,securityprofiles:{items:e.items,none:{id:null,title:null}},changed:!t.id},fn:{load:()=>{var e=a.data.securityprofiles.items.findIndex(e=>e.id==a.data.item.security_profile.id);a.data.item.security_profile=0<=e?a.data.securityprofiles.items[e]:a.data.securityprofiles.none,a.scope.scan(),a.scope.watch("Modal.data.item",()=>{a.data.changed=!0})},loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),(a.data.item.id?n.fn.updateData("foldertypes/"+a.data.item.id,a.data.item):n.fn.createData("foldertypes",a.data.item)).done(()=>{var e;a.data.item.id?(e=n.data.foldertypes.items.findIndex(e=>e.id==a.data.item.id),n.data.foldertypes.items[e]={...a.data.item},n.scope.scan()):n.fn.foldertypes.load(),n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),a.fn.close()})}}};n.modal.fn.show("modal-folder-type",a,a.fn.load)}).always(()=>{n.data.foldertypes.loading=!1,n.scope.scan()})},create:()=>{n.data.ticket?n.fn.foldertypes.unregistered.popup(e=>{n.fn.foldertypes.createEdit({id:null,type:e.id,title:e.title,security_profile:{id:n.globals.data.accesstypes.commonfolders.id,title:n.globals.data.accesstypes.commonfolders.title},enabled:!0})}):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},edit:()=>{var e=n.data.foldertypes.items.findIndex(e=>e.id==n.data.foldertypes.selected),e=n.data.foldertypes.items[e];n.data.ticket||["attachment","users"].includes(e.type)?(n.data.foldertypes.loading=!0,n.fn.getData("foldertypes/"+n.data.foldertypes.selected).done(e=>{n.fn.foldertypes.createEdit(e)}).always(()=>{n.data.foldertypes.loading=!1,n.scope.scan()})):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},delete:()=>{if(n.data.ticket){const e=n.data.foldertypes.items.filter(e=>e.checked).map(e=>e.id),a={data:{count:e.length},fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),n.fn.deleteData("foldertypes",{ids:e}).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),n.fn.foldertypes.load()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),n.modal.fn.close(a)})}}};e.length&&n.modal.fn.show("modal-confirm-delete",a)}else n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},unregistered:{popup:e=>{const a={data:{items:[],selected:null},fn:{load:()=>{a.fn.loading(!0),a.request=n.fn.getData("foldertypes/unregistered").done(e=>{a.data.items=e.items,a.scope.scan()}).always(()=>{a.request=null,a.fn.loading(!1)})},loading:e=>{a.loading=e,a.scope.scan()},close:()=>{a.request&&a.request.abort(),n.modal.fn.close(a)},submit:()=>{e&&e.call(this,a.data.selected),a.fn.close()}}};n.modal.fn.show("modal-select-folder-type",a,a.fn.load)}}},securityprofiles:{load:a=>{function t(){return n.data.securityprofiles.loading=!0,n.scope.scan(),n.fn.getData("securityprofiles",{page:n.data.securityprofiles.view.page,perpage:n.data.securityprofiles.view.perpage}).done(e=>{n.data.securityprofiles.items=e.items.map(e=>({...e,checked:!1})),n.data.securityprofiles.view=n.fn.getTableView(n.data.securityprofiles,e.total),n.data.securityprofiles.checked=!1,n.data.securityprofiles.selected=null,n.data.securityprofiles.loading=!1,n.scope.scan()})}return void 0!==a?n.fn.getData("securityprofiles").done(e=>{a=Math.min(Math.max(a,1),Math.ceil(e.total/n.data.securityprofiles.view.perpage)),n.data.securityprofiles.view.page=a,n.data.securityprofiles.view.total=e.total,t()}):t()},prev:()=>{n.fn.securityprofiles.load(n.data.securityprofiles.view.prev)},next:()=>{n.fn.securityprofiles.load(n.data.securityprofiles.view.next)},isLock:e=>!n.data.ticket,select:e=>{n.data.securityprofiles.selected=n.data.securityprofiles.selected!==e.id?e.id:null},dblclick:e=>{n.data.securityprofiles.selected=e.id,n.fn.securityprofiles.edit()},createEdit:e=>{const t={data:{item:{id:e.id,title:e.title,description:e.description,rights:o.clone(a.TABLE)},changed:!e.id,seed:0},fn:{load:()=>{t.data.item.rights.items=e.rights.map(e=>({...e,checked:!1})),t.data.item.rights.view=n.fn.getTableView(t.data.item.rights,t.data.item.rights.items.length),t.data.item.rights.checked=!1,t.data.item.rights.selected=null,t.data.item.rights.loading=!1,t.scope.scan(),t.scope.watch("Modal.data.item",()=>{t.data.changed=!0})},loading:e=>{t.loading=e,t.scope.scan()},select:e=>{t.data.item.rights.selected=t.data.item.rights.selected!==e.id?e.id:null},dblclick:e=>{t.data.item.rights.selected=e.id,t.fn.edit()},createEdit:a=>{t.fn.loading(!0),n.fn.getData("securityprofiles/predefined").done(e=>{n.fn.securityprofiles.rights.popup(a,e.items,t.data.item.rights.items,a=>{var e;a.id?(e=t.data.item.rights.items.findIndex(e=>e.id==a.id),t.data.item.rights.items[e]=a):(a.id=--t.data.seed,t.data.item.rights.items.push(a)),t.scope.scan()})}).always(()=>{t.fn.loading(!1)})},create:()=>{var e=o.clone(n.default.securityprofiles.profile);t.fn.createEdit(e)},edit:()=>{var e=t.data.item.rights.items.findIndex(e=>e.id==t.data.item.rights.selected),e=o.clone(t.data.item.rights.items[e]);t.fn.createEdit(e)},delete:()=>{const a=t.data.item.rights.items.filter(e=>e.checked).map(e=>e.id);var e=t.data.item.rights.items.filter(e=>!a.includes(e.id));t.data.item.rights.items=e,t.data.item.rights.view=n.fn.getTableView(t.data.item.rights,t.data.item.rights.items.length),t.scope.scan()},close:()=>{n.modal.fn.close(t)},submit:()=>{var e=o.clone(t.data.item);e.rights=e.rights.items.map(e=>(delete e.checked,e)),t.fn.loading(!0),(t.data.item.id?n.fn.updateData("securityprofiles/"+t.data.item.id,e):n.fn.createData("securityprofiles",e)).done(()=>{var e;t.data.item.id?(e=n.data.securityprofiles.items.findIndex(e=>e.id==t.data.item.id),n.data.securityprofiles.items[e]={...t.data.item},n.scope.scan()):n.fn.securityprofiles.load(1),n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{t.fn.loading(!1),t.fn.close()})}}};n.modal.fn.show("modal-security-profile",t,t.fn.load)},create:()=>{n.data.ticket?n.fn.securityprofiles.createEdit({id:null,title:null,description:null,rights:[]}):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},edit:()=>{["-1","-2"].includes(n.data.securityprofiles.selected)?n.notify.show(n.globals.msg.builtin,"mcmd-warning"):n.data.ticket?(n.data.securityprofiles.loading=!0,n.fn.getData("securityprofiles/"+n.data.securityprofiles.selected).done(e=>{n.fn.securityprofiles.createEdit(e)}).always(()=>{n.data.securityprofiles.loading=!1,n.scope.scan()})):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},delete:()=>{if(n.data.ticket){const e=n.data.securityprofiles.items.filter(e=>e.checked).map(e=>e.id),a={data:{count:e.length},fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),n.fn.deleteData("securityprofiles",{ids:e}).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),n.fn.securityprofiles.load(),n.fn.foldertypes.load()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),n.modal.fn.close(a)})}}};e.length&&n.modal.fn.show("modal-confirm-delete",a)}else n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},rights:{popup:(e,a,t,s)=>{const l={data:{item:o.clone(e),access_types:{items:a,none:{id:null,title:null}},changed:!e.id},fn:{load:()=>{var e=l.data.access_types.items.findIndex(e=>e.id==l.data.item.access_type.id);l.data.item.access_type=0<=e?l.data.access_types.items[e]:l.data.access_types.none,l.scope.scan(),l.scope.watch("Modal.data.item",()=>{l.data.changed=!0})},loading:e=>{l.loading=e,l.scope.scan()},selectUser:()=>{var e=t.filter(e=>"user"==e.owner.type).map(e=>e.owner.id);n.fn.users.popup(e,e=>{l.data.item.owner.type=e?"user":null,l.data.item.owner.id=e?e.id:null,l.data.item.owner.title=e?e.title:null,l.scope.scan()})},selectRole:()=>{var e=t.filter(e=>"role"==e.owner.type).map(e=>e.owner.id);n.fn.roles.popup(e,e=>{l.data.item.owner.type=e?"role":null,l.data.item.owner.id=e?e.id:null,l.data.item.owner.title=e?e.title:null,l.scope.scan()})},close:()=>{n.modal.fn.close(l)},submit:()=>{s&&s.call(this,l.data.item),l.fn.close()}}};n.modal.fn.show("modal-security-profile-rights",l,l.fn.load)}}},roles:{popup:(a,e)=>{const t={data:{items:[],selected:null},fn:{load:()=>{t.fn.loading(!0),t.request=n.fn.getData("roles").done(e=>{t.data.items=e.items.filter(e=>!a.includes(e.id)),t.scope.scan()}).always(()=>{t.request=null,t.fn.loading(!1)})},loading:e=>{t.loading=e,t.scope.scan()},close:()=>{t.request&&t.request.abort(),n.modal.fn.close(t)},submit:()=>{e&&e.call(this,t.data.selected),t.fn.close()}}};n.modal.fn.show("modal-select-role",t,t.fn.load)}},users:{popup:(a,e)=>{const t={data:{items:[],selected:null},fn:{load:()=>{t.fn.loading(!0),t.request=n.fn.getData("users").done(e=>{t.data.items=e.items.filter(e=>!a.includes(e.id)),t.scope.scan()}).always(()=>{t.request=null,t.fn.loading(!1)})},loading:e=>{t.loading=e,t.scope.scan()},close:()=>{t.request&&t.request.abort(),n.modal.fn.close(t)},submit:()=>{e&&e.call(this,t.data.selected),t.fn.close()}}};n.modal.fn.show("modal-select-user",t,t.fn.load)}},tools:{export:()=>{n.data.export.url=null,n.scope.scan(),n.fn.getData("export-csv").done(e=>{n.fn.tools.generateCSVFile(e),n.notify.show(n.globals.msg.success,"mcmd-success")})},generateCSVFile:e=>{var e=e.map((a,e)=>{let t="";return 0==e&&(t+=Object.keys(a).map(e=>[e]).join(",")+"\n"),t+=Object.keys(a).map(e=>(Array.isArray(a[e])&&(a[e]=a[e].join("|")),[a[e]].join(",")))}).join("\n"),e=new Blob([e],{type:"text/csv;charset=utf-8;"}),e=URL.createObjectURL(e),a=new Date,a=("0"+a.getDate()).slice(-2)+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+a.getFullYear();n.data.export.filename="mediacommander-"+a+".csv",n.data.export.url=e,n.scope.scan()},import:()=>{var e=new FormData;e.append("file",n.data.import.file),e.append("clear",n.data.import.clear),e.append("attachments",n.data.import.attachments),n.fn.loading(!0),d.ajax({url:n.globals.api.url+"/import-csv",type:"POST",data:e,processData:!1,contentType:!1,headers:{"X-WP-Nonce":n.globals.api.nonce}}).done(e=>{e&&e.success?n.notify.show(n.globals.msg.success,"mcmd-success"):n.notify.show(n.globals.msg.failed,"mcmd-failed")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)})},onFileToImportChange:e=>{n.data.import.file=e.files[0],n.scope.scan()},clear:()=>{const a={fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{n.modal.fn.close(a),n.fn.updateData("uninstall").done(e=>{n.notify.show(n.globals.msg.success,"mcmd-success"),window.location.replace(e)}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})}}};n.modal.fn.show("modal-confirm-clear-all",a)},importFromPlugin:a=>{const e=n.data.import.plugins.find(e=>e.key==a);e&&!e.lock&&(d(":focus").blur(),n.fn.loading(!0),n.fn.createData("import/"+e.key).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),e.lock=!0,n.scope.scan()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)}))},recalculate:()=>{n.fn.updateData("attachment/counters").done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})}}}};alight.directives.al.toggle={restrict:"EA",link:function(a,e,t,s){const l=d(e);l.addClass("mcmd-toggle").html(" "),l.on("click",function(e){s.setValue(t,!s.getValue(t)),s.scan(),function(){var e=l.data("callback");e&&s.changeDetector.compile(e)(a)}()}),void 0===s.getValue(t)&&void 0!==l.attr("data-default")&&(e=l.data("default"),s.setValue(t,e)),s.watch(t,function(e){e?l.addClass("mcmd-checked").removeClass("mcmd-unchecked"):l.removeClass("mcmd-checked").addClass("mcmd-unchecked")},{readOnly:!0})}},n.data.config=d.extend(!0,{},n.default.config),n.globals=mediacommander_settings_globals,n.alight=alight,n.scope=alight(document.querySelectorAll("#mcmd-app-settings")[0],{App:n}),n.fn.init()}(jQuery);1 !function(d){"use strict";const o={clone:e=>JSON.parse(JSON.stringify(e)),guid:()=>([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))},a={TABLE:{loading:!1,checked:!1,selected:null,items:[],view:{page:1,perpage:7,first:0,last:0,total:0},order:{column:null,type:null}}},n={alight:null,scope:null,ui:{loader:{count:0,timerId:null,$container:null},tabs:{items:["general","permissions","tools","gopro"],selected:0,zindex:4,fn:{is:e=>0<=n.ui.tabs.selected&&n.ui.tabs.selected<n.ui.tabs.items.length&&n.ui.tabs.items[n.ui.tabs.selected]==e,click:(e,a)=>{n.ui.tabs.items[n.ui.tabs.selected]!==a&&(d(e).css({"z-index":n.ui.tabs.zindex++}),n.ui.tabs.selected=n.ui.tabs.items.indexOf(a))}}}},default:{config:{roles:[],token:null,default_color:null,disable_counter:!1,disable_ajax:!1,infinite_scrolling:!1,disable_search_bar:!1,replace_media:!1,uninstall_fully:!1,media_hover_details:!1,media_hover_details_list:[]},securityprofiles:{profile:{id:null,owner:{type:null,id:null,title:null},access_type:{id:null,title:null},actions:{create:!1,view:!0,edit:!1,delete:!1,attach:!1}}}},data:{ready:!1,roles:[],media_hover_details:[],config:null,ticket:null,foldertypes:o.clone(a.TABLE),securityprofiles:o.clone(a.TABLE),export:{filename:null,url:null},import:{file:null,clear:!1,attachments:!1,plugins:null}},modal:{$container:null,templates:{},fn:{show:(i,a,t)=>{function s(e,a,t){a.guid=a.guid||o.guid();const s=d(e).attr({"data-modal-name":i,"data-modal-guid":a.guid}),l=(n.modal.$container.append(s),feather.replace({"stroke-width":2,width:22,height:22}),a.scope=n.alight(s.get(0),{App:n,Modal:a}),d("body").addClass("mcmd-modal-active"),this);setTimeout(()=>{s.addClass("mcmd-active"),t&&t.call(l)},100)}n.modal.templates[i]?s(n.modal.templates[i],a,t):n.fn.getData("template",{name:i}).done(e=>{n.modal.templates[i]=e,s(n.modal.templates[i],a,t)}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})},close:e=>{d(`[data-modal-guid='${e.guid}']`).removeClass("mcmd-active").remove(),0==d(".mcmd-modals").children().length&&d("body").removeClass("mcmd-modal-active"),e.scope.destroy(),e.scope=null}}},fn:{init:()=>{n.notify=new MEDIACOMMANDER.PLUGINS.NOTIFY,n.colorpicker=new MEDIACOMMANDER.PLUGINS.COLORPICKER;const e=d("#mcmd-app-settings");e.removeAttr("style"),n.fn.initDefaults(),n.fn.build(),d.when(n.fn.config.load(),n.fn.foldertypes.load(),n.fn.securityprofiles.load()).done(()=>{e.addClass("mcmd-active"),setTimeout(()=>{e.find(".mcmd-sidebar").addClass("mcmd-new-transition")},1e3)}),feather.replace({"stroke-width":2,width:22,height:22})},initDefaults:()=>{n.default.securityprofiles.profile.access_type={...n.globals.data.accesstypes.commonfolders},n.data.import.plugins=n.globals.data.plugins_to_import,n.data.ticket=n.globals.data.ticket,n.data.anonymous=n.globals.data.anonymous},build:()=>{n.ui.loader.$container=d("#mcmd-loader"),n.modal.$container=d("<div>").addClass("mcmd-modals").attr({tabindex:-1}),d("body").append(n.modal.$container).addClass("mcmd-app-settings-wrap")},loading:e=>{n.ui.loader.count+=e?1:-1,n.ui.loader.count=n.ui.loader.count<0?0:n.ui.loader.count,clearTimeout(n.ui.loader.timerId),n.ui.loader.count?n.ui.loader.$container.toggleClass("mcmd-active",!0):setTimeout(()=>{n.ui.loader.$container.toggleClass("mcmd-active",!1)},300)},processData:(e,a,t={})=>{const s=d.Deferred();return n.fn.loading(!0),e=d.ajax({url:n.globals.api.url+"/"+e,type:"GET"==a?"GET":"POST",cache:!1,dataType:"json",contentType:"application/json",headers:{"X-WP-Nonce":n.globals.api.nonce,"X-HTTP-Method-Override":a},data:"GET"==a?t:JSON.stringify(t)}).done(e=>{e&&e.success?s.resolve(e.data):s.reject()}).fail(()=>{s.reject()}).always(()=>{n.fn.loading(!1)}),{...s.promise(),abort:e.abort}},getData:(e,a={})=>n.fn.processData(e,"GET",a),createData:(e,a={})=>n.fn.processData(e,"POST",a),updateData:(e,a={})=>n.fn.processData(e,"PUT",a),deleteData:(e,a={})=>n.fn.processData(e,"DELETE",a),getTableView:(e,a)=>{var t=e.view.page,s=e.view.perpage?Math.ceil(a/e.view.perpage):1;return{page:t,pages:s,prev:1<t?t-1:null,next:t<s?t+1:null,perpage:e.view.perpage,first:(e.view.page-1)*e.view.perpage+1,last:e.view.page*e.view.perpage-Math.max(e.view.perpage-e.items.length,0),total:a}},selectOne:(e,a,t,s)=>{if(a)t.checked||(t.checked=a,(s||n.scope).scan());else{let e=!0;for(const l in t.items)if(t.items[l].checked){e=!1;break}e&&(t.checked=a,(s||n.scope).scan())}},selectAll:(e,a,t,s)=>{for(const l in t.items)t.items[l].checked=a;(s||n.scope).scan()},config:{load:()=>{const l=d.Deferred();return d.when(n.fn.getData("roles"),n.fn.getData("media-hover-details"),n.fn.getData("config")).done((e,a,t)=>{if(n.data.roles=e.items,n.data.media_hover_details=a.items,n.data.config=d.extend(!0,{},n.default.config,t),n.data.config)for(var s in n.data.config)n.default.config.hasOwnProperty(s)||delete n.data.config[s];n.scope.scan(),e=d("#mcmd-default-folder-color"),n.colorpicker.set(e,n.data.config.default_color,{top:6,left:-4}),e.on("color",n.fn.config.onColor),l.resolve()}),{...l.promise()}},onColor:(e,a)=>{n.data.config.default_color=a||null},onColorClick:e=>{n.data.ticket||(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),e.stopImmediatePropagation())},onAccessRoleChange:(e,a)=>{var t;n.data.ticket?(t=n.data.config.roles.indexOf(a.id),e.target.checked?-1==t&&n.data.config.roles.push(a.id):n.data.config.roles.splice(t,1)):(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),a=d(e.target).prop("checked"),d(e.target).prop("checked",!a))},isAccessRoleChecked:e=>-1!==n.data.config.roles.indexOf(e.id),onMediaDetailsChange:(e,a)=>{var t=n.data.config.media_hover_details_list.indexOf(a.id);e.target.checked?-1==t&&n.data.config.media_hover_details_list.push(a.id):n.data.config.media_hover_details_list.splice(t,1)},isMediaDetailsChecked:e=>-1!==n.data.config.media_hover_details_list.indexOf(e.id),onCheckboxChange:e=>{n.data.ticket||(n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade"),e.preventDefault(),e.stopImmediatePropagation())},save:()=>{n.fn.loading(!0),n.fn.updateData("config",n.data.config).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)})}},foldertypes:{load:a=>{function t(){return n.data.foldertypes.loading=!0,n.scope.scan(),n.fn.getData("foldertypes",{page:n.data.foldertypes.view.page,perpage:n.data.foldertypes.view.perpage}).done(e=>{n.data.foldertypes.items=e.items.map(e=>({...e,checked:!1})),n.data.foldertypes.view=n.fn.getTableView(n.data.foldertypes,e.total),n.data.foldertypes.checked=!1,n.data.foldertypes.selected=null,n.data.foldertypes.loading=!1,n.scope.scan()})}return void 0!==a?n.fn.getData("foldertypes").done(e=>{a=Math.min(Math.max(a,1),Math.ceil(e.total/n.data.foldertypes.view.perpage)),n.data.foldertypes.view.page=a,n.data.foldertypes.view.total=e.total,t()}):t()},prev:()=>{n.fn.foldertypes.load(n.data.foldertypes.view.prev)},next:()=>{n.fn.foldertypes.load(n.data.foldertypes.view.next)},isLock:e=>!n.data.ticket&&!["attachment","users"].includes(e.type),select:e=>{n.data.foldertypes.selected=n.data.foldertypes.selected!==e.id?e.id:null},dblclick:e=>{n.data.foldertypes.selected=e.id,n.fn.foldertypes.edit()},createEdit:t=>{n.data.foldertypes.loading=!0,n.fn.getData("securityprofiles/all").done(e=>{const a={data:{item:t,securityprofiles:{items:e.items,none:{id:null,title:null}},changed:!t.id},fn:{load:()=>{var e=a.data.securityprofiles.items.findIndex(e=>e.id==a.data.item.security_profile.id);a.data.item.security_profile=0<=e?a.data.securityprofiles.items[e]:a.data.securityprofiles.none,a.scope.scan(),a.scope.watch("Modal.data.item",()=>{a.data.changed=!0})},loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),(a.data.item.id?n.fn.updateData("foldertypes/"+a.data.item.id,a.data.item):n.fn.createData("foldertypes",a.data.item)).done(()=>{var e;a.data.item.id?(e=n.data.foldertypes.items.findIndex(e=>e.id==a.data.item.id),n.data.foldertypes.items[e]={...a.data.item},n.scope.scan()):n.fn.foldertypes.load(),n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),a.fn.close()})}}};n.modal.fn.show("modal-folder-type",a,a.fn.load)}).always(()=>{n.data.foldertypes.loading=!1,n.scope.scan()})},create:()=>{n.data.ticket?n.fn.foldertypes.unregistered.popup(e=>{n.fn.foldertypes.createEdit({id:null,type:e.id,title:e.title,security_profile:{id:n.globals.data.accesstypes.commonfolders.id,title:n.globals.data.accesstypes.commonfolders.title},enabled:!0})}):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},edit:()=>{var e=n.data.foldertypes.items.findIndex(e=>e.id==n.data.foldertypes.selected),e=n.data.foldertypes.items[e];n.data.ticket||["attachment","users"].includes(e.type)?(n.data.foldertypes.loading=!0,n.fn.getData("foldertypes/"+n.data.foldertypes.selected).done(e=>{n.fn.foldertypes.createEdit(e)}).always(()=>{n.data.foldertypes.loading=!1,n.scope.scan()})):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},delete:()=>{if(n.data.ticket){const e=n.data.foldertypes.items.filter(e=>e.checked).map(e=>e.id),a={data:{count:e.length},fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),n.fn.deleteData("foldertypes",{ids:e}).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),n.fn.foldertypes.load()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),n.modal.fn.close(a)})}}};e.length&&n.modal.fn.show("modal-confirm-delete",a)}else n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},unregistered:{popup:e=>{const a={data:{items:[],selected:null},fn:{load:()=>{a.fn.loading(!0),a.request=n.fn.getData("foldertypes/unregistered").done(e=>{a.data.items=e.items,a.scope.scan()}).always(()=>{a.request=null,a.fn.loading(!1)})},loading:e=>{a.loading=e,a.scope.scan()},close:()=>{a.request&&a.request.abort(),n.modal.fn.close(a)},submit:()=>{e&&e.call(this,a.data.selected),a.fn.close()}}};n.modal.fn.show("modal-select-folder-type",a,a.fn.load)}}},securityprofiles:{load:a=>{function t(){return n.data.securityprofiles.loading=!0,n.scope.scan(),n.fn.getData("securityprofiles",{page:n.data.securityprofiles.view.page,perpage:n.data.securityprofiles.view.perpage}).done(e=>{n.data.securityprofiles.items=e.items.map(e=>({...e,checked:!1})),n.data.securityprofiles.view=n.fn.getTableView(n.data.securityprofiles,e.total),n.data.securityprofiles.checked=!1,n.data.securityprofiles.selected=null,n.data.securityprofiles.loading=!1,n.scope.scan()})}return void 0!==a?n.fn.getData("securityprofiles").done(e=>{a=Math.min(Math.max(a,1),Math.ceil(e.total/n.data.securityprofiles.view.perpage)),n.data.securityprofiles.view.page=a,n.data.securityprofiles.view.total=e.total,t()}):t()},prev:()=>{n.fn.securityprofiles.load(n.data.securityprofiles.view.prev)},next:()=>{n.fn.securityprofiles.load(n.data.securityprofiles.view.next)},isLock:e=>!n.data.ticket,select:e=>{n.data.securityprofiles.selected=n.data.securityprofiles.selected!==e.id?e.id:null},dblclick:e=>{n.data.securityprofiles.selected=e.id,n.fn.securityprofiles.edit()},createEdit:e=>{const t={data:{item:{id:e.id,title:e.title,description:e.description,rights:o.clone(a.TABLE)},changed:!e.id,seed:0},fn:{load:()=>{t.data.item.rights.items=e.rights.map(e=>({...e,checked:!1})),t.data.item.rights.view=n.fn.getTableView(t.data.item.rights,t.data.item.rights.items.length),t.data.item.rights.checked=!1,t.data.item.rights.selected=null,t.data.item.rights.loading=!1,t.scope.scan(),t.scope.watch("Modal.data.item",()=>{t.data.changed=!0})},loading:e=>{t.loading=e,t.scope.scan()},select:e=>{t.data.item.rights.selected=t.data.item.rights.selected!==e.id?e.id:null},dblclick:e=>{t.data.item.rights.selected=e.id,t.fn.edit()},createEdit:a=>{t.fn.loading(!0),n.fn.getData("securityprofiles/predefined").done(e=>{n.fn.securityprofiles.rights.popup(a,e.items,t.data.item.rights.items,a=>{var e;a.id?(e=t.data.item.rights.items.findIndex(e=>e.id==a.id),t.data.item.rights.items[e]=a):(a.id=--t.data.seed,t.data.item.rights.items.push(a)),t.scope.scan()})}).always(()=>{t.fn.loading(!1)})},create:()=>{var e=o.clone(n.default.securityprofiles.profile);t.fn.createEdit(e)},edit:()=>{var e=t.data.item.rights.items.findIndex(e=>e.id==t.data.item.rights.selected),e=o.clone(t.data.item.rights.items[e]);t.fn.createEdit(e)},delete:()=>{const a=t.data.item.rights.items.filter(e=>e.checked).map(e=>e.id);var e=t.data.item.rights.items.filter(e=>!a.includes(e.id));t.data.item.rights.items=e,t.data.item.rights.view=n.fn.getTableView(t.data.item.rights,t.data.item.rights.items.length),t.scope.scan()},close:()=>{n.modal.fn.close(t)},submit:()=>{var e=o.clone(t.data.item);e.rights=e.rights.items.map(e=>(delete e.checked,e)),t.fn.loading(!0),(t.data.item.id?n.fn.updateData("securityprofiles/"+t.data.item.id,e):n.fn.createData("securityprofiles",e)).done(()=>{var e;t.data.item.id?(e=n.data.securityprofiles.items.findIndex(e=>e.id==t.data.item.id),n.data.securityprofiles.items[e]={...t.data.item},n.scope.scan()):n.fn.securityprofiles.load(1),n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{t.fn.loading(!1),t.fn.close()})}}};n.modal.fn.show("modal-security-profile",t,t.fn.load)},create:()=>{n.data.ticket?n.fn.securityprofiles.createEdit({id:null,title:null,description:null,rights:[]}):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},edit:()=>{["-1","-2"].includes(n.data.securityprofiles.selected)?n.notify.show(n.globals.msg.builtin,"mcmd-warning"):n.data.ticket?(n.data.securityprofiles.loading=!0,n.fn.getData("securityprofiles/"+n.data.securityprofiles.selected).done(e=>{n.fn.securityprofiles.createEdit(e)}).always(()=>{n.data.securityprofiles.loading=!1,n.scope.scan()})):n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},delete:()=>{if(n.data.ticket){const e=n.data.securityprofiles.items.filter(e=>e.checked).map(e=>e.id),a={data:{count:e.length},fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{a.fn.loading(!0),n.fn.deleteData("securityprofiles",{ids:e}).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),n.fn.securityprofiles.load(),n.fn.foldertypes.load()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{a.fn.loading(!1),n.modal.fn.close(a)})}}};e.length&&n.modal.fn.show("modal-confirm-delete",a)}else n.notify.show(n.globals.msg.upgrade,"mcmd-upgrade")},rights:{popup:(e,a,t,s)=>{const l={data:{item:o.clone(e),access_types:{items:a,none:{id:null,title:null}},changed:!e.id},fn:{load:()=>{var e=l.data.access_types.items.findIndex(e=>e.id==l.data.item.access_type.id);l.data.item.access_type=0<=e?l.data.access_types.items[e]:l.data.access_types.none,l.scope.scan(),l.scope.watch("Modal.data.item",()=>{l.data.changed=!0})},loading:e=>{l.loading=e,l.scope.scan()},selectUser:()=>{var e=t.filter(e=>"user"==e.owner.type).map(e=>e.owner.id);n.fn.users.popup(e,e=>{l.data.item.owner.type=e?"user":null,l.data.item.owner.id=e?e.id:null,l.data.item.owner.title=e?e.title:null,l.scope.scan()})},selectRole:()=>{var e=t.filter(e=>"role"==e.owner.type).map(e=>e.owner.id);n.fn.roles.popup(e,e=>{l.data.item.owner.type=e?"role":null,l.data.item.owner.id=e?e.id:null,l.data.item.owner.title=e?e.title:null,l.scope.scan()})},close:()=>{n.modal.fn.close(l)},submit:()=>{s&&s.call(this,l.data.item),l.fn.close()}}};n.modal.fn.show("modal-security-profile-rights",l,l.fn.load)}}},roles:{popup:(a,e)=>{const t={data:{items:[],selected:null},fn:{load:()=>{t.fn.loading(!0),t.request=n.fn.getData("roles").done(e=>{t.data.items=e.items.filter(e=>!a.includes(e.id)),t.scope.scan()}).always(()=>{t.request=null,t.fn.loading(!1)})},loading:e=>{t.loading=e,t.scope.scan()},close:()=>{t.request&&t.request.abort(),n.modal.fn.close(t)},submit:()=>{e&&e.call(this,t.data.selected),t.fn.close()}}};n.modal.fn.show("modal-select-role",t,t.fn.load)}},users:{popup:(a,e)=>{const t={data:{items:[],selected:null},fn:{load:()=>{t.fn.loading(!0),t.request=n.fn.getData("users").done(e=>{t.data.items=e.items.filter(e=>!a.includes(e.id)),t.scope.scan()}).always(()=>{t.request=null,t.fn.loading(!1)})},loading:e=>{t.loading=e,t.scope.scan()},close:()=>{t.request&&t.request.abort(),n.modal.fn.close(t)},submit:()=>{e&&e.call(this,t.data.selected),t.fn.close()}}};n.modal.fn.show("modal-select-user",t,t.fn.load)}},tools:{export:()=>{n.data.export.url=null,n.scope.scan(),n.fn.getData("export-csv").done(e=>{n.fn.tools.generateCSVFile(e),n.notify.show(n.globals.msg.success,"mcmd-success")})},generateCSVFile:e=>{var e=e.map((a,e)=>{let t="";return 0==e&&(t+=Object.keys(a).map(e=>[e]).join(",")+"\n"),t+=Object.keys(a).map(e=>(Array.isArray(a[e])&&(a[e]=a[e].join("|")),[a[e]].join(",")))}).join("\n"),e=new Blob([e],{type:"text/csv;charset=utf-8;"}),e=URL.createObjectURL(e),a=("0"+(a=new Date).getDate()).slice(-2)+"-"+("0"+(a.getMonth()+1)).slice(-2)+"-"+a.getFullYear();n.data.export.filename="mediacommander-"+a+".csv",n.data.export.url=e,n.scope.scan()},import:()=>{var e=new FormData;e.append("file",n.data.import.file),e.append("clear",n.data.import.clear),e.append("attachments",n.data.import.attachments),n.fn.loading(!0),d.ajax({url:n.globals.api.url+"/import-csv",type:"POST",data:e,processData:!1,contentType:!1,headers:{"X-WP-Nonce":n.globals.api.nonce}}).done(e=>{e&&e.success?n.notify.show(n.globals.msg.success,"mcmd-success"):n.notify.show(n.globals.msg.failed,"mcmd-failed")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)})},onFileToImportChange:e=>{n.data.import.file=e.files[0],n.scope.scan()},clear:()=>{const a={fn:{loading:e=>{a.loading=e,a.scope.scan()},close:()=>{n.modal.fn.close(a)},submit:()=>{n.modal.fn.close(a),n.fn.updateData("uninstall").done(e=>{n.notify.show(n.globals.msg.success,"mcmd-success"),window.location.replace(e)}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})}}};n.modal.fn.show("modal-confirm-clear-all",a)},importFromPlugin:a=>{const e=n.data.import.plugins.find(e=>e.key==a);e&&!e.lock&&(d(":focus").blur(),n.fn.loading(!0),n.fn.createData("import/"+e.key).done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success"),e.lock=!0,n.scope.scan()}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")}).always(()=>{n.fn.loading(!1)}))},recalculate:()=>{n.fn.updateData("attachment/counters").done(()=>{n.notify.show(n.globals.msg.success,"mcmd-success")}).fail(()=>{n.notify.show(n.globals.msg.failed,"mcmd-failed")})}}}};alight.directives.al.toggle={restrict:"EA",link:function(t,e,s,l){const i=d(e);i.addClass("mcmd-toggle").html(" "),i.on("click",function(e){var a;l.setValue(s,!l.getValue(s)),l.scan(),(a=i.data("callback"))&&l.changeDetector.compile(a)(t)}),void 0===l.getValue(s)&&void 0!==i.attr("data-default")&&(e=i.data("default"),l.setValue(s,e)),l.watch(s,function(e){e?i.addClass("mcmd-checked").removeClass("mcmd-unchecked"):i.removeClass("mcmd-checked").addClass("mcmd-unchecked")},{readOnly:!0})}},n.data.config=d.extend(!0,{},n.default.config),n.globals=mediacommander_settings_globals,n.alight=alight,n.scope=alight(document.querySelectorAll("#mcmd-app-settings")[0],{App:n}),n.fn.init()}(jQuery); -
mediacommander/trunk/assets/js/sidebar.js
r3092973 r3101075 1 !function(g){"use strict";const h={data:{media:!1,mediaBrowse:!1,modal:!1,hidden:!1,width:{current:260,min:260,max:800},ui:{$container:null,$sidebar:null,$splitter:null,$toggle:null,$list:null,$tree:null,$mediaframe:null},uploader:{$container:null,instance:null,list:[]},loader:{counter:0,$spin:null,$lock:null,request:null},dragdrop:{$ghost:null,$target:null,items:null,isTouch:!1,timerId:null},splitter:{cursor:{startWidth:0,start:0,prev:0,current:0}},folder:{active:null,prev:null,copy:null},tree:null,filter:{timerId:null},click:{folder:null,timerId:null},contextmenu:{list:null}},fn:{run:()=>{if(console.log("MediaCommander: version "+mediacommander_sidebar_globals.data.version),h.globals=mediacommander_sidebar_globals,h.globals.data.type)if(h.notify=new MEDIACOMMANDER.PLUGINS.NOTIFY,h.colorpicker=new MEDIACOMMANDER.PLUGINS.COLORPICKER,h.data.meta=g.extend({},h.globals.data.meta),h.data.ticket=h.globals.data.ticket,"attachment"==h.globals.data.type){var a=g("#view-switch-list").hasClass("current");if(h.data.media=!(a||"undefined"==typeof wp||!wp.media||!wp.media.view),h.data.media){if("function"==typeof wp.Uploader&&g.extend(wp.Uploader.prototype,{init:function(){this.uploader&&(h.data.uploader.instance=this.uploader,this.uploader.bind("FileFiltered",function(a,e){e._folder=h.data.folder.active}),this.uploader.bind("FilesAdded",function(a,e){for(const t of e)h.fn.uploader.addFile(t);h.fn.uploader.updateHeader(),h.fn.uploader.open()}),this.uploader.bind("BeforeUpload",function(a,e){e._folder&&(a=a.settings.multipart_params,0<(e=parseInt(e._folder))?a.folder=e:"folder"in a&&delete a.folder)}),this.uploader.bind("UploadProgress",function(a,e){}),this.uploader.bind("FileUploaded",function(a,e){h.fn.uploader.completeFile(e)}),this.uploader.bind("UploadComplete",function(a,e){h.fn.uploader.complete()}))}}),wp.media.view.AttachmentsBrowser){const e=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){h.data.attachmentsBrowser=this,h.data.mediaBrowse=!(!this.model.attributes.router||"browse"!=this.model.attributes.router),h.fn.updateMediaGridSort(),e.prototype.createToolbar.apply(this,arguments)}})}if(wp.media.view.MediaFrame.EditAttachments){const t=wp.media.view.MediaFrame.EditAttachments;wp.media.view.MediaFrame.EditAttachments=wp.media.view.MediaFrame.EditAttachments.extend({initialize:function(){h.data.editAttachments=this,t.prototype.initialize.apply(this,arguments)},updateMediaData:function(){const a=h.data.editAttachments;fetch(a.model.attributes.url,{cache:"reload",mode:"no-cors"}).then(()=>{a.model.fetch().done(()=>{a.rerender(a.model)})})}})}}g("body").hasClass("upload-php")?(h.fn.ajaxPrefilter(),h.fn.loadSidebar()):h.data.media&&wp.media.view.Modal&&((h.data.ticket||wp&&wp.blocks)&&h.fn.ajaxPrefilter(),wp.media.view.Modal.prototype.on("prepare",h.fn.onMediaModalPrepare),wp.media.view.Modal.prototype.on("open",h.fn.onMediaModalOpen),wp.media.view.Modal.prototype.on("close",h.fn.onMediaModalClose))}else h.fn.loadSidebar()},ajaxPrefilter:()=>{g.ajaxPrefilter((a,e,t)=>{"POST"===e.type&&e.data&&"query-attachments"==e.data.action&&h.data.mediaBrowse&&(e.data=g.extend(e.data,{mediacommander_mode:"grid"}),a.data=g.param(e.data))})},processData:(a,e,t={},d,o)=>{const r=g.Deferred(); d||h.fn.loading(!0,o);o=g.ajax({url:h.globals.api.url+"/"+a,type:"GET"==e?"GET":"POST",cache:!1,dataType:"json",contentType:"application/json",headers:{"X-WP-Nonce":h.globals.api.nonce,"X-HTTP-Method-Override":e},data:"GET"===e?t:JSON.stringify(t)}).done(a=>{a&&a.success?r.resolve(a.data):r.reject()}).fail(()=>{r.reject()}).always(()=>{d||h.fn.loading(!1)});return{...r.promise(),abort:o.abort}},getData:(a,e={},t,d)=>h.fn.processData(a,"GET",e,t,d),createData:(a,e={},t,d)=>h.fn.processData(a,"POST",e,t,d),updateData:(a,e={},t,d)=>h.fn.processData(a,"PUT",e,t,d),deleteData:(a,e={},t,d)=>h.fn.processData(a,"DELETE",e,t,d),loadProposal:()=>{h.data.hidden="true"===Cookies.get("mcmd-sidebar-hidden"),h.fn.prebuild(),h.fn.updateWidth(),h.fn.getData("template",{name:"proposal"}).done(a=>{h.fn.build(a,!0),g.when(h.fn.updateWidth()).done(()=>{h.fn.bind(!0),h.fn.ready()})})},loadSidebar:()=>{h.data.hidden="true"===Cookies.get("mcmd-sidebar-hidden"),h.fn.prebuild(),h.fn.updateWidth(),g.when(h.fn.getData("contextmenu"),h.fn.getData("meta",{type:h.globals.data.type}),h.fn.getData("template",{name:"sidebar"})).done((a,e,t)=>{h.data.contextmenu.list=a,h.data.meta=e,h.fn.build(t),g.when(h.fn.updateWidth(),h.fn.updateFoldersData(),h.fn.updateFoldersAttachCount()).done(()=>{h.fn.updateNoticeAndSearch(),h.fn.activateFolder(h.data.meta.folder,!0,!0),h.fn.collapseFolders(h.data.meta.collapsed),h.fn.initAttachments(),h.fn.bind(),h.fn.ready()})})},loading:(a,e)=>{a?(h.data.loader.counter++,h.data.loader.$spin.toggleClass("mcmd-active",!0),h.data.loader.$lock.toggleClass("mcmd-active",!e)):(h.data.loader.counter--,h.data.loader.counter<=0&&(h.data.loader.$spin.toggleClass("mcmd-active",!1),h.data.loader.$lock.toggleClass("mcmd-active",!1),h.data.loader.counter=0))},prebuild:()=>{var a,e,t;h.data.loader.$spin=g("<div>").addClass("mcmd-spin"),h.data.loader.$lock=g("<div>").addClass("mcmd-lock"),h.data.ui.$container=g("<div>").addClass("mcmd-container").toggleClass("mcmd-hidden",h.data.hidden),h.data.ui.$sidebar=g("<div>").addClass("mcmd-sidebar").toggleClass("mcmd-disable-tree-labels",h.globals.data.disable_counter).toggleClass("mcmd-disable-search-bar",h.globals.data.disable_search_bar),h.data.ui.$splitter=g("<div>").addClass("mcmd-splitter"),h.data.ui.$toggle=g("<div>").addClass("mcmd-toggle"),h.data.ui.$list=g("<div>").addClass("mcmd-list"),h.data.ui.$minitools=g("<div>").addClass("mcmd-minitools"),h.data.ui.$minitools.append(h.data.ui.$toggle,h.data.loader.$spin),h.data.modal||(a=g("#wpadminbar").height(),h.data.ui.$sidebar.css({position:"sticky",top:a+"px",height:"calc(100% - 1px)",width:h.data.width.current}),(a=(()=>{for(const a of g("#wpbody .wrap"))if(!g(a).is(":empty"))return g(a);return null})()).wrap(h.data.ui.$list),h.data.ui.$list=a.parent(),h.data.ui.$list.wrap(h.data.ui.$container).before(h.data.ui.$sidebar,h.data.ui.$splitter).append(h.data.ui.$minitools),h.data.ui.$container=h.data.ui.$sidebar.parent().addClass("mcmd-screen-type"),a=g("<div>").addClass("mcmd-ph-toolbar"),e=g("<div>").addClass("mcmd-ph-panel"),t=g("<div>").addClass("mcmd-ph-panel-tree"),h.data.ui.$sidebar.append(a,e,t))},build:(a,e)=>{h.data.ui.$sidebar.empty().append(a).append(h.data.loader.$lock),h.data.ui.$tree=h.data.ui.$sidebar.find("#mcmd-tree"),e||(h.globals.data.default_color&&document.documentElement.style.setProperty("--mcmd-default-folder-color",h.globals.data.default_color),h.globals.data.rights.c||h.data.ui.$sidebar.find("#mcmd-btn-create").remove(),"attachment"!==h.globals.data.type&&h.data.ui.$sidebar.find("#mcmd-btn-sort").remove(),h.globals.data.rights.c)||h.data.ui.$sidebar.find("#mcmd-toolbar").remove(),h.data.modal&&(a=g('div[id^="__wp-uploader-id-"].supports-drag-drop:visible'),h.data.ui.$mediaframe=g(`#${a.attr("id")} .media-frame`),h.data.ui.$mediaframe.prepend(h.data.ui.$container.append(h.data.ui.$sidebar)),h.data.ui.$mediaframe.find(".media-frame-title").prepend(h.data.ui.$minitools),h.data.ui.$container.addClass("mcmd-modal-type")),e||(a={callback:{loading:h.fn.loading,move:h.fn.moveFolders,collapse:h.fn.collapseFolder}},h.data.tree=MEDIACOMMANDER.PLUGINS.TREE("#mcmd-tree",a)),h.fn.uploader.build()},bind:a=>{h.data.ui.$toggle.on("click",h.fn.onToggleContainer),h.data.ui.$splitter.on("mousedown",h.fn.onSplitterMouseDown),a||(h.data.ui.$sidebar.find("#mcmd-btn-create").on("click",h.fn.onFolderCreate),h.data.ui.$sidebar.find("#mcmd-btn-sort").on("click",h.fn.onFolderSort),h.data.ui.$sidebar.find("#mcmd-search-input").on("input",h.fn.onSearchInput),h.data.ui.$sidebar.find("#mcmd-search-clear").on("click",h.fn.onSearchClear),h.data.ui.$sidebar.on("click",".mcmd-tree-item",h.fn.onFolderClick),h.data.ui.$sidebar.on("dblclick",".mcmd-tree-item",h.fn.onFolderDblClick),h.data.ui.$sidebar.on("contextmenu",".mcmd-tree-item",h.fn.onContextMenu),g(document).ajaxComplete(h.fn.onAjaxComplete),"attachment"==h.globals.data.type&&h.globals.data.media_hover_details&&g(document).on("mouseover",".attachment",h.fn.onShowMediaDetails))},ready:()=>{h.data.ui.$sidebar.addClass("mcmd-active"),h.data.ui.$splitter.addClass("mcmd-active"),h.data.ui.$toggle.addClass("mcmd-active"),h.data.ui.$container.addClass("mcmd-active"),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.toggleClass("mcmd-active",!h.data.hidden),h.data.ui.$sidebar.find("#mcmd-toolbar").addClass("mcmd-active"),h.data.ui.$sidebar.find("#mcmd-panel").addClass("mcmd-active")},updateMeta:a=>{var e=h.data.tree.getFlatData(),e=e?e.filter(a=>a.collapsed).map(a=>a.id):null,e={folder:h.data.folder.active,collapsed:e,sort:h.data.meta.sort};return h.fn.updateData("meta",{type:h.globals.data.type,meta:e},a,!0)},updateWidth:a=>{a=(a=a||Cookies.get("mcmd-sidebar-width"))||0,a=Math.min(Math.max(a,h.data.width.min),h.data.width.max),h.data.width.current=a,h.data.ui.$sidebar.css({width:a})},updateNoticeAndSearch:()=>{var a=h.globals.data.rights.c&&!(h.data.tree&&h.data.tree.hasItems());h.data.ui.$sidebar.find("#mcmd-notice-create").toggleClass("mcmd-active",a),h.data.ui.$sidebar.find("#mcmd-search").toggleClass("mcmd-active",!a),h.data.ui.$sidebar.find("#mcmd-panel-tree").toggleClass("mcmd-active",!a)},updateMediaGridSort:()=>{if(h.data.mediaBrowse){var a={orderby:"date",order:"DESC"};switch(h.data.meta.sort.items){case"name-asc":a.orderby="title",a.order="ASC";break;case"name-desc":a.orderby="title",a.order="DESC";break;case"date-asc":a.orderby="date",a.order="ASC";break;case"date-desc":a.orderby="date",a.order="DESC";break;case"mod-asc":a.orderby="modified",a.order="ASC";break;case"mod-desc":a.orderby="modified",a.order="DESC";break;case"author-asc":a.orderby="authorName",a.order="ASC";break;case"author-desc":a.orderby="authorName",a.order="DESC"}h.data.attachmentsBrowser&&h.data.attachmentsBrowser.collection&&h.data.attachmentsBrowser.collection.props.set({orderby:a.orderby,order:a.order})}},updateMediaGridData:()=>{h.fn.updateMediaGridSort(),h.data.attachmentsBrowser&&h.data.attachmentsBrowser.collection&&h.data.attachmentsBrowser.collection.props.set({ignore:+new Date})},updateListData:a=>{const e=g.Deferred();h.fn.loading(!0,!0);a=g.ajax({method:"GET",url:a,dataType:"html"}).done(a=>{e.resolve(a)}).fail(()=>{e.reject()}).always(()=>{h.fn.loading(!1)});return{...e.promise(),abort:a.abort}},updateFoldersData:()=>h.fn.getData("folders",{type:h.globals.data.type}).done(a=>{for(const e of a)h.data.tree.addItem(e)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")}),updateFoldersAttachCount:a=>{var e;return h.globals.data.disable_counter?((e=g.Deferred()).resolve(),e.promise()):h.fn.getData("attachment/counters",{type:h.globals.data.type,folders:a}).done(a=>{for(const e of a)h.data.tree.updateItemLabel(e.id,e.count),-1!=e.id&&-2!=e.id||h.data.ui.$sidebar.find(`.mcmd-tree-item[data-id='${e.id}'] .mcmd-tree-label`).toggleClass("mcmd-tree-active",0!=e.count).text(e.count)})},reinitWordPressStuff:()=>{var a;window.inlineEditPost&&window.inlineEditPost.init(),"plugins"===h.globals.data.type&&(a=g("#updates-js")).length&&a.remove().appendTo("head")},initAttachments:()=>{h.data.dragdrop.$ghost=g("<div>").addClass("mcmd-attachment-drag-ghost"),h.data.media?h.globals.data.rights.a&&g(".media-frame .media-frame-content").on("mousedown touchstart",".attachment",h.fn.onAttachmentDown):(h.data.ui.$list.toggleClass("mcmd-can-attach",h.globals.data.rights.a),h.globals.data.rights.a&&g("#the-list").on("mousedown touchstart",".check-column",h.fn.onAttachmentDown))},dropAttachments:(a,e)=>{a&&h.data.folder.active!=a&&e&&e.length&&h.fn.updateData("attach",{type:h.globals.data.type,folder:a,attachments:e}).done(a=>{h.fn.updateFoldersAttachCount(a),h.fn.activateFolder(h.data.folder.active,!1,!0)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},activateFolder:(a,e,t)=>{h.data.folder.active==a&&!t||(h.data.folder.prev=h.data.folder.active,h.data.folder.active=a,h.data.ui.$sidebar.find(".mcmd-tree-item.mcmd-active").removeClass("mcmd-active"),h.data.ui.$sidebar.find(`.mcmd-tree-item[data-id='${a}']`).addClass("mcmd-active"),e)||(h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(),h.data.loader.request.done(()=>{var a;h.data.media?h.fn.updateMediaGridData():(("string"==typeof(a=Url.queryString("paged"))||a instanceof String)&&Url.updateSearchParam("paged","1",!1),h.globals.data.disable_ajax?window.location.reload():(h.data.loader.request=h.fn.updateListData(location.href),h.data.loader.request.done(e=>{var a=(()=>{for(const a of g(e).find("#wpbody .wrap"))if(!g(a).is(":empty"))return g(a);return null})();a&&(h.data.ui.$list.find(".wrap")[0].innerHTML=a[0].innerHTML,h.fn.initAttachments(),h.fn.reinitWordPressStuff())}).fail(()=>{h.data.loader.request=null}).always(()=>{h.data.loader.request=null})))}).fail(()=>{h.data.loader.request=null}).always(()=>{}))},collapseFolders:a=>{if(a&&a.length)for(const e of a)h.data.tree.collapseItem(e,!0)},createFolders:(a,e,t)=>{a&&a.length&&h.fn.createData("folders",{type:h.globals.data.type,names:a,color:e,parent:t}).done(a=>{for(const e of a)h.data.tree.addItem({id:e.id,title:e.title,color:e.color},t);h.fn.updateNoticeAndSearch()}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},renameFolder:(a,t)=>{h.fn.updateData("folders",{type:h.globals.data.type,action:"rename",folders:[a],name:t}).done(a=>{for(const e of a)h.data.tree.updateItemTitle(e,t)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},colorFolders:(a,t)=>{a&&a.length&&h.fn.updateData("folders",{type:h.globals.data.type,action:"color",folders:a,color:t}).done(a=>{for(const e of a)h.data.tree.updateItemColor(e,t)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},moveFolders:function(e,a,t,d,o,r){const l=this;let i=[];switch(o){case"before":(i=(i=JSON.parse(JSON.stringify(d))).filter(a=>!e.includes(a))).splice(i.indexOf(t),0,...e);break;case"after":(i=(i=JSON.parse(JSON.stringify(d))).filter(a=>!e.includes(a))).splice(i.indexOf(t)+1,0,...e);break;case"inside":if(!h.data.ticket)return void h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade");i=d.concat(e)}h.fn.updateData("folders",{type:h.globals.data.type,action:"move",folders:e,parent:a,sorting:i}).done(a=>{r&&"function"==typeof r&&r.call(l,a,t,o)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},collapseFolder:function(){h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(!0),h.data.loader.request.always(()=>{h.data.loader.request=null})},copyFolders:(a,e)=>{h.fn.createData("copyfolder",{type:h.globals.data.type,src:a,dst:e}).done(a=>{for(const e of a)h.data.tree.addItem(e,e.parent);h.fn.updateNoticeAndSearch()}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},deleteFolders:a=>{a&&a.length&&h.fn.deleteData("folders",{type:h.globals.data.type,folders:a}).done(a=>{let e=!1;for(const t of a)h.data.tree.removeItem(t),e||h.data.folder.active!=t||(e=!0),h.data.folder.copy==t&&(h.data.folder.copy=null);h.fn.updateNoticeAndSearch(),h.fn.updateFoldersAttachCount(),h.data.folder.active<0?h.fn.activateFolder(h.data.folder.active,!1,!0):e&&h.fn.activateFolder(-1)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},downloadFolders:a=>{a&&a.length&&h.fn.getData("folders/download/url",{type:h.globals.data.type,folders:a}).done(a=>{window.open(a,"_blank")}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},filterFolders:a=>{clearTimeout(h.data.filter.timerId),h.data.filter.timerId=setTimeout(()=>{h.data.tree.filter(a)},500)},onToggleContainer:()=>{h.data.hidden=!h.data.hidden,h.data.ui.$container.toggleClass("mcmd-hidden",h.data.hidden),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.toggleClass("mcmd-active",!h.data.hidden),Cookies.set("mcmd-sidebar-hidden",h.data.hidden)},onSplitterMouseDown:a=>{a.preventDefault(),a.stopImmediatePropagation(),h.data.splitter.cursor.startWidth=h.data.width.current,h.data.splitter.cursor.start=h.data.splitter.prev=h.data.splitter.cursor.current=a.pageX,g(window).on("mousemove",h.fn.onSplitterMouseMove),g(window).on("mouseup",h.fn.onSplitterMouseUp)},onSplitterMouseMove:a=>{h.data.splitter.cursor.prev=h.data.splitter.cursor.current,h.data.splitter.cursor.current=a.pageX,h.data.width.current=h.data.splitter.cursor.startWidth+(h.data.splitter.cursor.current-h.data.splitter.cursor.start),Cookies.set("mcmd-sidebar-width",h.data.width.current),h.fn.updateWidth(h.data.width.current)},onSplitterMouseUp:()=>{g(window).off("mousemove",h.fn.onSplitterMouseMove),g(window).off("mouseup",h.fn.onSplitterMouseUp)},onFolderCreate:()=>{if(h.globals.data.rights.c){const t=g("#mcmd-form-create");if(t.hasClass("mcmd-active"))t.removeClass("mcmd-active");else{g("#mcmd-form-sort").removeClass("mcmd-active");const o=t.find("#mcmd-folder-name"),r=t.find("#mcmd-folder-parent"),l=t.find("#mcmd-folder-color");o.val(""),h.colorpicker.set(l,null),r.off().empty().append(g("<option>").val(0).text(h.globals.msg.parent_folder));var a=h.data.tree.getFlatData();for(const i in a){var e=a[i];h.data.ticket?r.append(g("<option>").val(e.id).html(" ".repeat(e.level)+e.title).prop("selected",e.id===h.data.folder.active)):r.append(g("<option>").val(e.id).html(" ".repeat(e.level)+e.title))}function d(){t.removeClass("mcmd-active")}h.data.ticket||r.change(a=>{a.target.selectedIndex=0,h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade")}),t.off("click"),t.one("click",".mcmd-close",()=>{d()}),t.one("click",".mcmd-submit",()=>{var a=o.val().split(",").map(a=>a.trim()),e=r.val(),t=h.colorpicker.get(l);h.fn.createFolders(a,t,e),d()}),t.addClass("mcmd-active")}}},onFolderCreateBuiltin:e=>{if(h.globals.data.rights.c){var a=h.data.ui.$tree.find(`.mcmd-tree-item[data-id=${e}]`);if(a.length){const n=g("<div>").addClass("mcmd-tree-nodes");var t=g("<div>").addClass("mcmd-tree-node"),d=g("<div>").addClass("mcmd-tree-item mcmd-tree-edited"),o=g("<div>").addClass("mcmd-tree-icon").append(h.data.tree.getIcon()),r=g("<div>").addClass("mcmd-tree-edit").attr({id:"mcmd-tree-edit"});const s=g("<input>").addClass("mcmd-tree-input").attr({spellcheck:"false",autocomplete:"off"});var l=g("<div>").addClass("mcmd-tree-btn-enter");function i(){n.remove(),h.data.tree.toggleDragDrop(!0)}h.data.tree.toggleDragDrop(!1),a.parent().append(n.append(t.append(d.append(o,r.append(s,l))))),s.focus().val(h.globals.msg.new_folder).one("blur",()=>{i()}).on("keyup",a=>{13!=a.keyCode&&27!=a.keyCode||(i(),13==a.keyCode&&(a=s.val().split(",").map(a=>a.trim()),h.fn.createFolders(a,null,e)))})}}},onFolderCopy:a=>{h.data.folder.copy=a},onFolderPaste:a=>{null!=h.data.folder.copy&&h.fn.copyFolders(h.data.folder.copy,a)},onFolderDelete:a=>{const e=g("<div>").addClass("mcmd-modal"),t=g("#mcmd-form-delete").clone();function d(){e.remove()}t.off("click"),t.one("click",".mcmd-close",()=>{d()}),t.one("click",".mcmd-submit",()=>{h.fn.deleteFolders(a.map(a=>a.id)),d()}),g("body").append(e.append(t)),setTimeout(()=>{e.addClass("mcmd-active"),t.addClass("mcmd-active")})},onFolderDownload:a=>{h.fn.downloadFolders(a.map(a=>a.id))},onFolderSort:()=>{const d=g("#mcmd-form-sort");if(d.hasClass("mcmd-active"))d.removeClass("mcmd-active");else{g("#mcmd-form-create").removeClass("mcmd-active");let t=h.data.meta.sort.items;t&&d.find(`.mcmd-sort-types [data="${t}"]`).addClass("mcmd-active"),d.find(".mcmd-sort-type").off().on("click",a=>{var e;h.data.ticket?(e=(a=g(a.target)).attr("data"),d.find(".mcmd-sort-type").removeClass("mcmd-active"),a.toggleClass("mcmd-active",t!==e),t=t===e?null:e,h.data.meta.sort.items!==t&&(h.data.meta.sort.items=t,h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(),h.data.loader.request.always(()=>{h.data.loader.request=null,h.fn.activateFolder(h.data.folder.active,!1,!0)}))):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade")}),d.off("click"),d.one("click",".mcmd-close",()=>{d.removeClass("mcmd-active")}),d.addClass("mcmd-active")}},onFolderClick:a=>{clearTimeout(h.data.click.timerId),a.shiftKey||a.ctrlKey||g(a.target).hasClass("mcmd-tree-toggle")||1!==a.detail||(a=g(a.currentTarget)).hasClass("mcmd-tree-edited")||(h.data.click.folder=a.attr("data-id"),h.data.click.timerId=setTimeout(h.fn.onFolderClickAction,300))},onFolderClickAction:()=>{h.data.click.timerId=null;var a=h.data.click.folder;-1!=a&&-2!=a||h.data.tree.clearSelection(),h.fn.activateFolder(a)},onFolderDblClick:a=>{if(h.globals.data.rights.e){a.preventDefault();const t=g(a.currentTarget);a=t.attr("data-id");const d=h.data.tree.getItem(a);if(d&&!t.hasClass("mcmd-tree-edited")){const o=g("<div>").addClass("mcmd-tree-edit").attr({id:"mcmd-tree-edit"}),r=g("<input>").addClass("mcmd-tree-input").attr({spellcheck:"false",autocomplete:"off"});a=g("<div>").addClass("mcmd-tree-btn-enter");function e(){o.remove(),t.removeClass("mcmd-tree-edited"),h.data.tree.toggleDragDrop(!0)}h.data.tree.toggleDragDrop(!1),t.append(o.append(r,a)).addClass("mcmd-tree-edited"),r.focus().val(d.title).one("blur",()=>{e()}).on("keyup",a=>{13!=a.keyCode&&27!=a.keyCode||(e(),13==a.keyCode&&(a=r.val(),t.find(".mcmd-tree-title").text(a),h.fn.renameFolder(d.id,a)))})}}},onContextMenu:a=>{if(h.globals.data.rights.c||h.globals.data.rights.e||h.globals.data.rights.d){const n=g(a.currentTarget),s=n.attr("data-id");if(-1!=s&&-2!=s){var e=h.data.tree.getItem(s);e.state.selected||(h.data.tree.clearSelection(),h.data.tree.selectItem(s,!0)),a.preventDefault();const c=h.data.tree.getSelectedItems(),m=g("<div>").addClass("mcmd-contextmenu").attr({tabindex:-1});var t=g("body");const p=()=>{m.remove(),h.data.tree.clearSelection()};var d=a=>{h.fn.colorFolders(c.map(a=>a.id),a),p()};for(const f of h.data.contextmenu.list)if(!(!h.globals.data.rights.c&&"c"==f.right||!h.globals.data.rights.v&&"v"==f.right||!h.globals.data.rights.e&&"e"==f.right||!h.globals.data.rights.d&&"d"==f.right||"attachment"!==h.globals.data.type&&"download"==f.id)){var o=g("<div>").addClass("mcmd-item").attr({"data-id":f.id}),r=g("<div>").addClass("mcmd-icon").html(f.icon),l=g("<div>").addClass("mcmd-title").text(f.title);switch(m.append(o.append(r,l)),f.id){case"create":m.append(g("<div>").addClass("mcmd-splitter"));break;case"color":{const u=g("<div>").addClass("mcmd-submenu");new MEDIACOMMANDER.PLUGINS.COLORPICKER(e.color,u,d);o.append(u),o.on("mouseover mouseout",a=>{u.toggleClass("mcmd-active","mouseover"==a.type),"mouseover"!==a.type&&m.focus()})}break;case"paste":o.toggleClass("mcmd-disabled",null==h.data.folder.copy);break;case"delete":o.addClass("mcmd-alert")}}var i=(a=a.originalEvent).clientY,a=a.clientX;m.css({top:i,left:a}).on("blur",a=>{a.currentTarget.contains(a.relatedTarget)||p()}).on("click",".mcmd-item",a=>{switch(g(a.target).data("id")){case"create":h.data.ticket?h.fn.onFolderCreateBuiltin(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"rename":n.dblclick(),p();break;case"copy":h.data.ticket?h.fn.onFolderCopy(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"paste":h.data.ticket?h.fn.onFolderPaste(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"delete":h.fn.onFolderDelete(c),p();break;case"download":h.fn.onFolderDownload(c),p()}}),t.append(m),m.focus()}}},onSearchInput:a=>{h.fn.filterFolders(a.target.value)},onSearchClear:()=>{g("#mcmd-search-input").val(""),h.fn.filterFolders()},onAttachmentFolderEnter:a=>{h.data.dragdrop.$target=g(a.currentTarget).addClass("mcmd-droppable")},onAttachmentFolderLeave:()=>{h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null},onAttachmentFolderUnderPointer:a=>{a=g(document.elementFromPoint(a.originalEvent.touches[0].clientX,a.originalEvent.touches[0].clientY)).closest(".mcmd-tree-item");h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null,a.length&&(h.data.dragdrop.$target=a.addClass("mcmd-droppable"))},onAttachmentDown:e=>{var t="touchstart"===e.type&&e.originalEvent.touches&&1==e.originalEvent.touches.length;if(1===e.which||t)if(h.data.media){if(h.data.mediaBrowse){t||e.preventDefault(),t||e.stopImmediatePropagation();const a=[];g('.media-frame .media-frame-content .attachment[aria-checked="true"]').each(function(){a.push(g(this).attr("data-id"))}),0==a.length&&a.push(g(e.currentTarget).attr("data-id")),a.length&&(h.data.dragdrop.isTouch=t,h.data.dragdrop.items=a,h.data.dragdrop.$ghost.text("Move "+a.length+" items").appendTo("body"),t?(document.addEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).on("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).on("touchmove",h.fn.onAttachmentMove),g(window).on("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.on("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.on("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).on("mousemove",h.fn.onAttachmentMove),g(window).on("mouseup",h.fn.onAttachmentUp)))}}else{t||e.preventDefault(),t||e.stopImmediatePropagation();const d=[];let a="post";switch(h.globals.data.type){case"attachment":a="media";break;case"users":a="users";break;case"plugins":a="checked"}g(`#the-list input[name='${a}[]']:checked`).each(function(){d.push(g(this).val())}),0==d.length&&d.push(g(e.currentTarget).find("input").val()),d.length&&(h.data.dragdrop.isTouch=t,h.data.dragdrop.items=d,h.data.dragdrop.$ghost.text("Move "+d.length+" items").appendTo("body"),t?(document.addEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).on("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).on("touchmove",h.fn.onAttachmentMove),g(window).on("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.on("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.on("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).on("mousemove",h.fn.onAttachmentMove),g(window).on("mouseup",h.fn.onAttachmentUp)))}},onAttachmentMove:a=>{h.data.dragdrop.items&&h.data.dragdrop.items.length&&(a=h.data.dragdrop.isTouch?a.originalEvent.touches[0]:a,h.data.dragdrop.$ghost.addClass("mcmd-active").css({top:a.clientY+5+"px",left:a.clientX+5+"px"}))},onAttachmentUp:()=>{var a=h.data.dragdrop.$target?h.data.dragdrop.$target.attr("data-id"):null,e=h.data.dragdrop.items;h.data.dragdrop.$ghost.text("").removeClass("mcmd-active").detach(),h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null,h.data.dragdrop.items=null,clearTimeout(h.data.dragdrop.timerId),h.data.dragdrop.timerId=null,h.data.dragdrop.isTouch?(document.removeEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).off("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).off("touchmove",h.fn.onAttachmentMove),g(window).off("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.off("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.off("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).off("mousemove",h.fn.onAttachmentMove),g(window).off("mouseup",h.fn.onAttachmentUp)),h.fn.dropAttachments(a,e)},onMediaModalPrepare:()=>{},onMediaModalOpen:()=>{h.data.modal||(h.data.modal=!0,h.data.ticket||wp&&wp.blocks?h.fn.loadSidebar():h.fn.loadProposal())},onMediaModalClose:()=>{h.data.modal=!1,h.data.ui.$container&&h.data.ui.$container.remove(),h.data.ui.$minitools&&h.data.ui.$minitools.remove(),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.removeClass("mcmd-active")},onAjaxComplete:(a,e,t)=>{null!=t.data&&"string"==typeof t.data&&-1<t.data.indexOf("action=delete-post")&&(t=(t=h.data.tree.getFlatData())?t.map(a=>a.id):null,h.fn.activateFolder(h.data.folder.active,!1,!0),h.fn.updateFoldersAttachCount(t),h.fn.updateNoticeAndSearch())},onShowMediaDetails:a=>{var e,t,a=g(a.target);a.hasClass("mcmd-has-preview-details")||(e=a.attr("data-id"))&&(t=window.wp.media.attachment(e)).attributes&&t.attributes.preview_details&&(a.addClass("mcmd-has-preview-details"),g(".attachment[data-id="+e+"] .attachment-preview").prepend(t.attributes.preview_details))},onTouchMove:a=>{a.preventDefault(),clearTimeout(h.data.dragdrop.timerId);a.touches[0].clientY<30?h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,-window.innerHeight/5),150):a.touches[0].clientY>window.innerHeight-30&&(h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,window.innerHeight/5),150))},scroll:a=>{window.scrollBy({top:a,behavior:"smooth"}),h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,a),150)},formatBytes:a=>{let e=0,t=parseInt(a,10)||0;for(;1024<=t&&++e;)t/=1024;return t.toFixed(t<10&&0<e?1:0)+" "+["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e]},uploader:{build:()=>{h.data.uploader.$container=g("<div>").addClass("mcmd-uploader"),h.data.uploader.$header=g("<div>").addClass("mcmd-header").text("Upload"),h.data.uploader.$title=g("<div>").addClass("mcmd-title"),h.data.uploader.$count=g("<div>").addClass("mcmd-count"),h.data.uploader.$close=g("<div>").addClass("mcmd-close").html('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=" M 7.734 6.281 L 6.328 7.688 L 10.609 11.969 L 6.266 16.313 L 7.672 17.719 L 12.016 13.375 L 16.328 17.688 L 17.734 16.281 L 13.422 11.969 L 17.672 7.719 L 16.266 6.313 L 12.016 10.563 L 7.734 6.281 Z "></path></svg>'),h.data.uploader.$data=g("<div>").addClass("mcmd-data"),h.data.uploader.$container.append(h.data.uploader.$header.append(h.data.uploader.$title,h.data.uploader.$count,h.data.uploader.$close),h.data.uploader.$data),h.data.ui.$container.append(h.data.uploader.$container),h.data.uploader.$close.on("click",h.fn.uploader.close)},open:()=>{h.data.uploader.$container.addClass("mcmd-active")},close:()=>{h.data.uploader.$container.removeClass("mcmd-active"),h.data.uploader.$close.removeClass("mcmd-active"),h.data.uploader.$data.empty(),h.data.uploader.list.filter(a=>!a.loaded).length&&(h.data.uploader.instance.stop(),h.fn.uploader.complete()),h.data.uploader.list=[]},complete:()=>{var a=h.data.uploader.list.map(a=>a.folder).filter((a,e,t)=>t.indexOf(a)==e);h.fn.activateFolder(h.data.folder.active,!1,!0),h.fn.updateFoldersAttachCount(a),h.fn.updateNoticeAndSearch()},addFile:a=>{var e={id:a.id,folder:a._folder,loaded:!1},e=(h.data.uploader.list.push(e),h.data.tree.getItem(a._folder)),t=g("<div>").addClass("mcmd-item").attr({"data-id":a.id}),d=g("<div>").addClass("mcmd-title").text(a.name),a=g("<div>").addClass("mcmd-info").text(h.fn.formatBytes(a.size)+(e?" ["+e.title+"]":""));h.data.uploader.$data.prepend(t.append(d,a))},completeFile:a=>{h.data.uploader.$data.find(`.mcmd-item[data-id="${a.id}"]`).addClass("mcmd-loaded");for(const e of h.data.uploader.list)if(e.id===a.id){e.loaded=!0;break}h.fn.uploader.updateHeader()},updateHeader:()=>{var a=h.data.uploader.list.filter(a=>a.loaded).length;h.data.uploader.$count.text(a+" / "+h.data.uploader.list.length)}},replacemedia:{open:a=>{const e={data:{$modal:g("<div>").addClass("mcmd-modal"),$form:g("#mcmd-form-replace-media").clone(),attachment:g(a).attr("data-attachment-id"),file:null},fn:{build:()=>{e.data.$fileDropZone=e.data.$form.find(".mcmd-file-drop-zone"),e.data.$fileUpload=e.data.$form.find(".mcmd-file-upload"),e.data.$imagePreview=e.data.$form.find(".mcmd-image-preview"),e.data.$fileSelect=e.data.$form.find(".mcmd-file-select"),e.data.$fileSubmit=e.data.$form.find(".mcmd-btn.mcmd-submit"),e.data.$loader=e.data.$form.find(".mcmd-loader"),g("body").append(e.data.$modal.append(e.data.$form)),setTimeout(()=>{e.data.$modal.addClass("mcmd-active"),e.data.$form.addClass("mcmd-active")})},bind:()=>{e.data.$form.on("click",".mcmd-close",e.fn.close),e.data.$form.on("click",".mcmd-submit",e.fn.submit),e.data.$modal.on("dragenter dragover drop",()=>!1),e.data.$fileUpload.on("change",e.fn.selectFile),e.data.$fileSelect.on("click",()=>{e.data.$fileUpload.click()}),(new XMLHttpRequest).upload&&(e.data.$fileDropZone.on("dragover dragleave",e.fn.dragHover),e.data.$fileDropZone.on("drop",e.fn.selectFile))},loading:a=>{e.data.$loader.toggleClass("mcmd-active",a)},dragHover:a=>(a.currentTarget.contains(a.relatedTarget)||e.data.$fileDropZone.toggleClass("mcmd-hover","dragover"===a.type),!1),selectFile:a=>{e.data.file=null,e.data.$fileSubmit.addClass("mcmd-hidden"),e.fn.dragHover(a);var a=a.originalEvent.target.files||a.originalEvent.dataTransfer.files;1==a.length?(a=a[0],/\.(?=gif|jpg|png|jpeg)/gi.test(a.name)?(e.data.file=a,e.data.$fileDropZone.addClass("mcmd-preview"),e.data.$imagePreview.get(0).src=URL.createObjectURL(e.data.file),e.data.$fileSubmit.removeClass("mcmd-hidden")):(e.data.$fileDropZone.removeClass("mcmd-preview"),e.data.$fileDropZone.get(0).reset())):h.notify.show(h.globals.msg.failed,"mcmd-failed")},show:()=>{e.fn.build(),e.fn.bind()},close:()=>{e.data.$modal.remove()},submit:()=>{var a;null!=e.data.file&&((a=new FormData).append("file",e.data.file),a.append("attachment",e.data.attachment),e.fn.loading(!0),g.ajax({url:h.globals.api.url+"/replace-media",type:"POST",data:a,processData:!1,contentType:!1,headers:{"X-WP-Nonce":h.globals.api.nonce}}).done(a=>{a&&a.success?(e.fn.close(),h.notify.show(h.globals.msg.success,"mcmd-success"),h.fn.activateFolder(h.data.folder.active,!1,!0),h.data.editAttachments&&h.data.editAttachments.updateMediaData()):h.notify.show(h.globals.msg.failed,"mcmd-failed")}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")}).always(()=>{e.fn.loading(!1)}))}}};e.fn.show()}}}};g(()=>{h.fn.run()}),window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.APP=h}(jQuery);1 !function(g){"use strict";const h={data:{media:!1,mediaBrowse:!1,modal:!1,hidden:!1,width:{current:260,min:260,max:800},ui:{$container:null,$sidebar:null,$splitter:null,$toggle:null,$list:null,$tree:null,$mediaframe:null},uploader:{$container:null,instance:null,list:[]},loader:{counter:0,$spin:null,$lock:null,request:null},dragdrop:{$ghost:null,$target:null,items:null,isTouch:!1,timerId:null},splitter:{cursor:{startWidth:0,start:0,prev:0,current:0}},folder:{active:null,prev:null,copy:null},tree:null,filter:{timerId:null},click:{folder:null,timerId:null},contextmenu:{list:null}},fn:{run:()=>{if(console.log("MediaCommander: version "+mediacommander_sidebar_globals.data.version),h.globals=mediacommander_sidebar_globals,h.globals.data.type)if(h.notify=new MEDIACOMMANDER.PLUGINS.NOTIFY,h.colorpicker=new MEDIACOMMANDER.PLUGINS.COLORPICKER,h.data.meta=g.extend({},h.globals.data.meta),h.data.ticket=h.globals.data.ticket,"attachment"==h.globals.data.type){var a=g("#view-switch-list").hasClass("current");if(h.data.media=!(a||"undefined"==typeof wp||!wp.media||!wp.media.view),h.data.media){if("function"==typeof wp.Uploader&&g.extend(wp.Uploader.prototype,{init:function(){this.uploader&&(h.data.uploader.instance=this.uploader,this.uploader.bind("FileFiltered",function(a,e){e._folder=h.data.folder.active}),this.uploader.bind("FilesAdded",function(a,e){for(const t of e)h.fn.uploader.addFile(t);h.fn.uploader.updateHeader(),h.fn.uploader.open()}),this.uploader.bind("BeforeUpload",function(a,e){e._folder&&(a=a.settings.multipart_params,0<(e=parseInt(e._folder))?a.folder=e:"folder"in a&&delete a.folder)}),this.uploader.bind("UploadProgress",function(a,e){}),this.uploader.bind("FileUploaded",function(a,e){h.fn.uploader.completeFile(e)}),this.uploader.bind("UploadComplete",function(a,e){h.fn.uploader.complete()}))}}),wp.media.view.AttachmentsBrowser){const e=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){h.data.attachmentsBrowser=this,h.data.mediaBrowse=!(!this.model.attributes.router||"browse"!=this.model.attributes.router),h.fn.updateMediaGridSort(),e.prototype.createToolbar.apply(this,arguments)}})}if(wp.media.view.MediaFrame.EditAttachments){const t=wp.media.view.MediaFrame.EditAttachments;wp.media.view.MediaFrame.EditAttachments=wp.media.view.MediaFrame.EditAttachments.extend({initialize:function(){h.data.editAttachments=this,t.prototype.initialize.apply(this,arguments)},updateMediaData:function(){const a=h.data.editAttachments;fetch(a.model.attributes.url,{cache:"reload",mode:"no-cors"}).then(()=>{a.model.fetch().done(()=>{a.rerender(a.model)})})}})}}g("body").hasClass("upload-php")?(h.fn.ajaxPrefilter(),h.fn.loadSidebar()):h.data.media&&wp.media.view.Modal&&((h.data.ticket||wp&&wp.blocks)&&h.fn.ajaxPrefilter(),wp.media.view.Modal.prototype.on("prepare",h.fn.onMediaModalPrepare),wp.media.view.Modal.prototype.on("open",h.fn.onMediaModalOpen),wp.media.view.Modal.prototype.on("close",h.fn.onMediaModalClose))}else h.fn.loadSidebar()},ajaxPrefilter:()=>{g.ajaxPrefilter((a,e,t)=>{"POST"===e.type&&e.data&&"query-attachments"==e.data.action&&h.data.mediaBrowse&&(e.data=g.extend(e.data,{mediacommander_mode:"grid"}),a.data=g.param(e.data))})},processData:(a,e,t={},d,o)=>{const r=g.Deferred();return d||h.fn.loading(!0,o),o=g.ajax({url:h.globals.api.url+"/"+a,type:"GET"==e?"GET":"POST",cache:!1,dataType:"json",contentType:"application/json",headers:{"X-WP-Nonce":h.globals.api.nonce,"X-HTTP-Method-Override":e},data:"GET"===e?t:JSON.stringify(t)}).done(a=>{a&&a.success?r.resolve(a.data):r.reject()}).fail(()=>{r.reject()}).always(()=>{d||h.fn.loading(!1)}),{...r.promise(),abort:o.abort}},getData:(a,e={},t,d)=>h.fn.processData(a,"GET",e,t,d),createData:(a,e={},t,d)=>h.fn.processData(a,"POST",e,t,d),updateData:(a,e={},t,d)=>h.fn.processData(a,"PUT",e,t,d),deleteData:(a,e={},t,d)=>h.fn.processData(a,"DELETE",e,t,d),loadProposal:()=>{h.data.hidden="true"===Cookies.get("mcmd-sidebar-hidden"),h.fn.prebuild(),h.fn.updateWidth(),h.fn.getData("template",{name:"proposal"}).done(a=>{h.fn.build(a,!0),g.when(h.fn.updateWidth()).done(()=>{h.fn.bind(!0),h.fn.ready()})})},loadSidebar:()=>{h.data.hidden="true"===Cookies.get("mcmd-sidebar-hidden"),h.fn.prebuild(),h.fn.updateWidth(),g.when(h.fn.getData("contextmenu"),h.fn.getData("meta",{type:h.globals.data.type}),h.fn.getData("template",{name:"sidebar"})).done((a,e,t)=>{h.data.contextmenu.list=a,h.data.meta=e,h.fn.build(t),g.when(h.fn.updateWidth(),h.fn.updateFoldersData(),h.fn.updateFoldersAttachCount()).done(()=>{h.fn.updateNoticeAndSearch(),h.fn.activateFolder(h.data.meta.folder,!0,!0),h.fn.collapseFolders(h.data.meta.collapsed),h.fn.initAttachments(),h.fn.bind(),h.fn.ready()})})},loading:(a,e)=>{a?(h.data.loader.counter++,h.data.loader.$spin.toggleClass("mcmd-active",!0),h.data.loader.$lock.toggleClass("mcmd-active",!e)):(h.data.loader.counter--,h.data.loader.counter<=0&&(h.data.loader.$spin.toggleClass("mcmd-active",!1),h.data.loader.$lock.toggleClass("mcmd-active",!1),h.data.loader.counter=0))},prebuild:()=>{var a,e,t;h.data.loader.$spin=g("<div>").addClass("mcmd-spin"),h.data.loader.$lock=g("<div>").addClass("mcmd-lock"),h.data.ui.$container=g("<div>").addClass("mcmd-container").toggleClass("mcmd-hidden",h.data.hidden),h.data.ui.$sidebar=g("<div>").addClass("mcmd-sidebar").toggleClass("mcmd-disable-tree-labels",h.globals.data.disable_counter).toggleClass("mcmd-disable-search-bar",h.globals.data.disable_search_bar),h.data.ui.$splitter=g("<div>").addClass("mcmd-splitter"),h.data.ui.$toggle=g("<div>").addClass("mcmd-toggle"),h.data.ui.$list=g("<div>").addClass("mcmd-list"),h.data.ui.$minitools=g("<div>").addClass("mcmd-minitools"),h.data.ui.$minitools.append(h.data.ui.$toggle,h.data.loader.$spin),h.data.modal||(a=g("#wpadminbar").height(),h.data.ui.$sidebar.css({position:"sticky",top:a+"px",height:"calc(100% - 1px)",width:h.data.width.current}),(a=(()=>{for(const a of g("#wpbody .wrap"))if(!g(a).is(":empty"))return g(a);return null})()).wrap(h.data.ui.$list),h.data.ui.$list=a.parent(),h.data.ui.$list.wrap(h.data.ui.$container).before(h.data.ui.$sidebar,h.data.ui.$splitter).append(h.data.ui.$minitools),h.data.ui.$container=h.data.ui.$sidebar.parent().addClass("mcmd-screen-type"),a=g("<div>").addClass("mcmd-ph-toolbar"),e=g("<div>").addClass("mcmd-ph-panel"),t=g("<div>").addClass("mcmd-ph-panel-tree"),h.data.ui.$sidebar.append(a,e,t))},build:(a,e)=>{h.data.ui.$sidebar.empty().append(a).append(h.data.loader.$lock),h.data.ui.$tree=h.data.ui.$sidebar.find("#mcmd-tree"),e||(h.globals.data.default_color&&document.documentElement.style.setProperty("--mcmd-default-folder-color",h.globals.data.default_color),h.globals.data.rights.c||h.data.ui.$sidebar.find("#mcmd-btn-create").remove(),"attachment"!==h.globals.data.type&&h.data.ui.$sidebar.find("#mcmd-btn-sort").remove(),h.globals.data.rights.c)||h.data.ui.$sidebar.find("#mcmd-toolbar").remove(),h.data.modal&&(a=g('div[id^="__wp-uploader-id-"].supports-drag-drop:visible'),h.data.ui.$mediaframe=g(`#${a.attr("id")} .media-frame`),h.data.ui.$mediaframe.prepend(h.data.ui.$container.append(h.data.ui.$sidebar)),h.data.ui.$mediaframe.find(".media-frame-title").prepend(h.data.ui.$minitools),h.data.ui.$container.addClass("mcmd-modal-type")),e||(a={callback:{loading:h.fn.loading,move:h.fn.moveFolders,collapse:h.fn.collapseFolder}},h.data.tree=MEDIACOMMANDER.PLUGINS.TREE("#mcmd-tree",a)),h.fn.uploader.build()},bind:a=>{h.data.ui.$toggle.on("click",h.fn.onToggleContainer),h.data.ui.$splitter.on("mousedown",h.fn.onSplitterMouseDown),a||(h.data.ui.$sidebar.find("#mcmd-btn-create").on("click",h.fn.onFolderCreate),h.data.ui.$sidebar.find("#mcmd-btn-sort").on("click",h.fn.onFolderSort),h.data.ui.$sidebar.find("#mcmd-search-input").on("input",h.fn.onSearchInput),h.data.ui.$sidebar.find("#mcmd-search-clear").on("click",h.fn.onSearchClear),h.data.ui.$sidebar.on("click",".mcmd-tree-item",h.fn.onFolderClick),h.data.ui.$sidebar.on("dblclick",".mcmd-tree-item",h.fn.onFolderDblClick),h.data.ui.$sidebar.on("contextmenu",".mcmd-tree-item",h.fn.onContextMenu),g(document).ajaxComplete(h.fn.onAjaxComplete),"attachment"==h.globals.data.type&&h.globals.data.media_hover_details&&g(document).on("mouseover",".attachment",h.fn.onShowMediaDetails))},ready:()=>{h.data.ui.$sidebar.addClass("mcmd-active"),h.data.ui.$splitter.addClass("mcmd-active"),h.data.ui.$toggle.addClass("mcmd-active"),h.data.ui.$container.addClass("mcmd-active"),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.toggleClass("mcmd-active",!h.data.hidden),h.data.ui.$sidebar.find("#mcmd-toolbar").addClass("mcmd-active"),h.data.ui.$sidebar.find("#mcmd-panel").addClass("mcmd-active")},updateMeta:a=>{var e=(e=h.data.tree.getFlatData())?e.filter(a=>a.collapsed).map(a=>a.id):null,e={folder:h.data.folder.active,collapsed:e,sort:h.data.meta.sort};return h.fn.updateData("meta",{type:h.globals.data.type,meta:e},a,!0)},updateWidth:a=>{a=a||Cookies.get("mcmd-sidebar-width")||0,a=Math.min(Math.max(a,h.data.width.min),h.data.width.max),h.data.width.current=a,h.data.ui.$sidebar.css({width:a})},updateNoticeAndSearch:()=>{var a=h.globals.data.rights.c&&!(h.data.tree&&h.data.tree.hasItems());h.data.ui.$sidebar.find("#mcmd-notice-create").toggleClass("mcmd-active",a),h.data.ui.$sidebar.find("#mcmd-search").toggleClass("mcmd-active",!a),h.data.ui.$sidebar.find("#mcmd-panel-tree").toggleClass("mcmd-active",!a)},updateMediaGridSort:()=>{if(h.data.mediaBrowse){var a={orderby:"date",order:"DESC"};switch(h.data.meta.sort.items){case"name-asc":a.orderby="title",a.order="ASC";break;case"name-desc":a.orderby="title",a.order="DESC";break;case"date-asc":a.orderby="date",a.order="ASC";break;case"date-desc":a.orderby="date",a.order="DESC";break;case"mod-asc":a.orderby="modified",a.order="ASC";break;case"mod-desc":a.orderby="modified",a.order="DESC";break;case"author-asc":a.orderby="authorName",a.order="ASC";break;case"author-desc":a.orderby="authorName",a.order="DESC"}h.data.attachmentsBrowser&&h.data.attachmentsBrowser.collection&&h.data.attachmentsBrowser.collection.props.set({orderby:a.orderby,order:a.order})}},updateMediaGridData:()=>{h.fn.updateMediaGridSort(),h.data.attachmentsBrowser&&h.data.attachmentsBrowser.collection&&h.data.attachmentsBrowser.collection.props.set({ignore:+new Date})},updateListData:a=>{const e=g.Deferred();return h.fn.loading(!0,!0),a=g.ajax({method:"GET",url:a,dataType:"html"}).done(a=>{e.resolve(a)}).fail(()=>{e.reject()}).always(()=>{h.fn.loading(!1)}),{...e.promise(),abort:a.abort}},updateFoldersData:()=>h.fn.getData("folders",{type:h.globals.data.type}).done(a=>{for(const e of a)h.data.tree.addItem(e)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")}),updateFoldersAttachCount:a=>{var e;return h.globals.data.disable_counter?((e=g.Deferred()).resolve(),e.promise()):h.fn.getData("attachment/counters",{type:h.globals.data.type,folders:a}).done(a=>{for(const e of a)h.data.tree.updateItemLabel(e.id,e.count),-1!=e.id&&-2!=e.id||h.data.ui.$sidebar.find(`.mcmd-tree-item[data-id='${e.id}'] .mcmd-tree-label`).toggleClass("mcmd-tree-active",0!=e.count).text(e.count)})},reinitWordPressStuff:()=>{var a;window.inlineEditPost&&window.inlineEditPost.init(),"plugins"===h.globals.data.type&&(a=g("#updates-js")).length&&a.remove().appendTo("head")},initAttachments:()=>{h.data.dragdrop.$ghost=g("<div>").addClass("mcmd-attachment-drag-ghost"),h.data.media?h.globals.data.rights.a&&g(".media-frame .media-frame-content").on("mousedown touchstart",".attachment",h.fn.onAttachmentDown):(h.data.ui.$list.toggleClass("mcmd-can-attach",h.globals.data.rights.a),h.globals.data.rights.a&&g("#the-list").on("mousedown touchstart",".check-column",h.fn.onAttachmentDown))},dropAttachments:(a,e)=>{a&&h.data.folder.active!=a&&e&&e.length&&h.fn.updateData("attach",{type:h.globals.data.type,folder:a,attachments:e}).done(a=>{h.fn.updateFoldersAttachCount(a),h.fn.activateFolder(h.data.folder.active,!1,!0)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},activateFolder:(a,e,t)=>{h.data.folder.active==a&&!t||(h.data.folder.prev=h.data.folder.active,h.data.folder.active=a,h.data.ui.$sidebar.find(".mcmd-tree-item.mcmd-active").removeClass("mcmd-active"),h.data.ui.$sidebar.find(`.mcmd-tree-item[data-id='${a}']`).addClass("mcmd-active"),e)||(h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(),h.data.loader.request.done(()=>{var a;h.data.media?h.fn.updateMediaGridData():(("string"==typeof(a=Url.queryString("paged"))||a instanceof String)&&Url.updateSearchParam("paged","1",!1),h.globals.data.disable_ajax?window.location.reload():(h.data.loader.request=h.fn.updateListData(location.href),h.data.loader.request.done(e=>{var a=(()=>{for(const a of g(e).find("#wpbody .wrap"))if(!g(a).is(":empty"))return g(a);return null})();a&&(h.data.ui.$list.find(".wrap")[0].innerHTML=a[0].innerHTML,h.fn.initAttachments(),h.fn.reinitWordPressStuff())}).fail(()=>{h.data.loader.request=null}).always(()=>{h.data.loader.request=null})))}).fail(()=>{h.data.loader.request=null}).always(()=>{}))},collapseFolders:a=>{if(a&&a.length)for(const e of a)h.data.tree.collapseItem(e,!0)},createFolders:(a,e,t)=>{a&&a.length&&h.fn.createData("folders",{type:h.globals.data.type,names:a,color:e,parent:t}).done(a=>{for(const e of a)h.data.tree.addItem({id:e.id,title:e.title,color:e.color},t);h.fn.updateNoticeAndSearch()}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},renameFolder:(a,t)=>{h.fn.updateData("folders",{type:h.globals.data.type,action:"rename",folders:[a],name:t}).done(a=>{for(const e of a)h.data.tree.updateItemTitle(e,t)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},colorFolders:(a,t)=>{a&&a.length&&h.fn.updateData("folders",{type:h.globals.data.type,action:"color",folders:a,color:t}).done(a=>{for(const e of a)h.data.tree.updateItemColor(e,t)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},moveFolders:function(e,a,t,d,o,r){const l=this;let i=[];switch(o){case"before":(i=(i=JSON.parse(JSON.stringify(d))).filter(a=>!e.includes(a))).splice(i.indexOf(t),0,...e);break;case"after":(i=(i=JSON.parse(JSON.stringify(d))).filter(a=>!e.includes(a))).splice(i.indexOf(t)+1,0,...e);break;case"inside":if(!h.data.ticket)return void h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade");i=d.concat(e)}h.fn.updateData("folders",{type:h.globals.data.type,action:"move",folders:e,parent:a,sorting:i}).done(a=>{r&&"function"==typeof r&&r.call(l,a,t,o)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},collapseFolder:function(){h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(!0),h.data.loader.request.always(()=>{h.data.loader.request=null})},copyFolders:(a,e)=>{h.fn.createData("copyfolder",{type:h.globals.data.type,src:a,dst:e}).done(a=>{for(const e of a)h.data.tree.addItem(e,e.parent);h.fn.updateNoticeAndSearch()}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},deleteFolders:a=>{a&&a.length&&h.fn.deleteData("folders",{type:h.globals.data.type,folders:a}).done(a=>{let e=!1;for(const t of a)h.data.tree.removeItem(t),e||h.data.folder.active!=t||(e=!0),h.data.folder.copy==t&&(h.data.folder.copy=null);h.fn.updateNoticeAndSearch(),h.fn.updateFoldersAttachCount(),h.data.folder.active<0?h.fn.activateFolder(h.data.folder.active,!1,!0):e&&h.fn.activateFolder(-1)}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},downloadFolders:a=>{a&&a.length&&h.fn.getData("folders/download/url",{type:h.globals.data.type,folders:a}).done(a=>{window.open(a,"_blank")}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")})},filterFolders:a=>{clearTimeout(h.data.filter.timerId),h.data.filter.timerId=setTimeout(()=>{h.data.tree.filter(a)},500)},onToggleContainer:()=>{h.data.hidden=!h.data.hidden,h.data.ui.$container.toggleClass("mcmd-hidden",h.data.hidden),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.toggleClass("mcmd-active",!h.data.hidden),Cookies.set("mcmd-sidebar-hidden",h.data.hidden)},onSplitterMouseDown:a=>{a.preventDefault(),a.stopImmediatePropagation(),h.data.splitter.cursor.startWidth=h.data.width.current,h.data.splitter.cursor.start=h.data.splitter.prev=h.data.splitter.cursor.current=a.pageX,g(window).on("mousemove",h.fn.onSplitterMouseMove),g(window).on("mouseup",h.fn.onSplitterMouseUp)},onSplitterMouseMove:a=>{h.data.splitter.cursor.prev=h.data.splitter.cursor.current,h.data.splitter.cursor.current=a.pageX,h.data.width.current=h.data.splitter.cursor.startWidth+(h.data.splitter.cursor.current-h.data.splitter.cursor.start),Cookies.set("mcmd-sidebar-width",h.data.width.current),h.fn.updateWidth(h.data.width.current)},onSplitterMouseUp:()=>{g(window).off("mousemove",h.fn.onSplitterMouseMove),g(window).off("mouseup",h.fn.onSplitterMouseUp)},onFolderCreate:()=>{if(h.globals.data.rights.c){const t=g("#mcmd-form-create");if(t.hasClass("mcmd-active"))t.removeClass("mcmd-active");else{g("#mcmd-form-sort").removeClass("mcmd-active");const o=t.find("#mcmd-folder-name"),r=t.find("#mcmd-folder-parent"),l=t.find("#mcmd-folder-color");o.val(""),h.colorpicker.set(l,null),r.off().empty().append(g("<option>").val(0).text(h.globals.msg.parent_folder));var a=h.data.tree.getFlatData();for(const i in a){var e=a[i];h.data.ticket?r.append(g("<option>").val(e.id).html(" ".repeat(e.level)+e.title).prop("selected",e.id===h.data.folder.active)):r.append(g("<option>").val(e.id).html(" ".repeat(e.level)+e.title))}function d(){t.removeClass("mcmd-active")}h.data.ticket||r.change(a=>{a.target.selectedIndex=0,h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade")}),t.off("click"),t.one("click",".mcmd-close",()=>{d()}),t.one("click",".mcmd-submit",()=>{var a=o.val().split(",").map(a=>a.trim()),e=r.val(),t=h.colorpicker.get(l);h.fn.createFolders(a,t,e),d()}),t.addClass("mcmd-active")}}},onFolderCreateBuiltin:e=>{if(h.globals.data.rights.c){var a=h.data.ui.$tree.find(`.mcmd-tree-item[data-id=${e}]`);if(a.length){const n=g("<div>").addClass("mcmd-tree-nodes");var t=g("<div>").addClass("mcmd-tree-node"),d=g("<div>").addClass("mcmd-tree-item mcmd-tree-edited"),o=g("<div>").addClass("mcmd-tree-icon").append(h.data.tree.getIcon()),r=g("<div>").addClass("mcmd-tree-edit").attr({id:"mcmd-tree-edit"});const s=g("<input>").addClass("mcmd-tree-input").attr({spellcheck:"false",autocomplete:"off"});var l=g("<div>").addClass("mcmd-tree-btn-enter");function i(){n.remove(),h.data.tree.toggleDragDrop(!0)}h.data.tree.toggleDragDrop(!1),a.parent().append(n.append(t.append(d.append(o,r.append(s,l))))),s.focus().val(h.globals.msg.new_folder).one("blur",()=>{i()}).on("keyup",a=>{13!=a.keyCode&&27!=a.keyCode||(i(),13==a.keyCode&&(a=s.val().split(",").map(a=>a.trim()),h.fn.createFolders(a,null,e)))})}}},onFolderCopy:a=>{h.data.folder.copy=a},onFolderPaste:a=>{null!=h.data.folder.copy&&h.fn.copyFolders(h.data.folder.copy,a)},onFolderDelete:a=>{const e=g("<div>").addClass("mcmd-modal"),t=g("#mcmd-form-delete").clone();function d(){e.remove()}t.off("click"),t.one("click",".mcmd-close",()=>{d()}),t.one("click",".mcmd-submit",()=>{h.fn.deleteFolders(a.map(a=>a.id)),d()}),g("body").append(e.append(t)),setTimeout(()=>{e.addClass("mcmd-active"),t.addClass("mcmd-active")})},onFolderDownload:a=>{h.fn.downloadFolders(a.map(a=>a.id))},onFolderSort:()=>{const d=g("#mcmd-form-sort");if(d.hasClass("mcmd-active"))d.removeClass("mcmd-active");else{g("#mcmd-form-create").removeClass("mcmd-active");let t=h.data.meta.sort.items;t&&d.find(`.mcmd-sort-types [data="${t}"]`).addClass("mcmd-active"),d.find(".mcmd-sort-type").off().on("click",a=>{var e;h.data.ticket?(e=(a=g(a.target)).attr("data"),d.find(".mcmd-sort-type").removeClass("mcmd-active"),a.toggleClass("mcmd-active",t!==e),t=t===e?null:e,h.data.meta.sort.items!==t&&(h.data.meta.sort.items=t,h.data.loader.request&&h.data.loader.request.abort(),h.data.loader.request=h.fn.updateMeta(),h.data.loader.request.always(()=>{h.data.loader.request=null,h.fn.activateFolder(h.data.folder.active,!1,!0)}))):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade")}),d.off("click"),d.one("click",".mcmd-close",()=>{d.removeClass("mcmd-active")}),d.addClass("mcmd-active")}},onFolderClick:a=>{clearTimeout(h.data.click.timerId),a.shiftKey||a.ctrlKey||g(a.target).hasClass("mcmd-tree-toggle")||1!==a.detail||(a=g(a.currentTarget)).hasClass("mcmd-tree-edited")||(h.data.click.folder=a.attr("data-id"),h.data.click.timerId=setTimeout(h.fn.onFolderClickAction,300))},onFolderClickAction:()=>{h.data.click.timerId=null;var a=h.data.click.folder;-1!=a&&-2!=a||h.data.tree.clearSelection(),h.fn.activateFolder(a)},onFolderDblClick:a=>{if(h.globals.data.rights.e){a.preventDefault();const t=g(a.currentTarget),d=(a=t.attr("data-id"),h.data.tree.getItem(a));if(d&&!t.hasClass("mcmd-tree-edited")){const o=g("<div>").addClass("mcmd-tree-edit").attr({id:"mcmd-tree-edit"}),r=g("<input>").addClass("mcmd-tree-input").attr({spellcheck:"false",autocomplete:"off"});function e(){o.remove(),t.removeClass("mcmd-tree-edited"),h.data.tree.toggleDragDrop(!0)}a=g("<div>").addClass("mcmd-tree-btn-enter"),h.data.tree.toggleDragDrop(!1),t.append(o.append(r,a)).addClass("mcmd-tree-edited"),r.focus().val(d.title).one("blur",()=>{e()}).on("keyup",a=>{13!=a.keyCode&&27!=a.keyCode||(e(),13==a.keyCode&&(a=r.val(),t.find(".mcmd-tree-title").text(a),h.fn.renameFolder(d.id,a)))})}}},onContextMenu:a=>{if(h.globals.data.rights.c||h.globals.data.rights.e||h.globals.data.rights.d){const n=g(a.currentTarget),s=n.attr("data-id");if(-1!=s&&-2!=s){var e=h.data.tree.getItem(s);e.state.selected||(h.data.tree.clearSelection(),h.data.tree.selectItem(s,!0)),a.preventDefault();const c=h.data.tree.getSelectedItems(),m=g("<div>").addClass("mcmd-contextmenu").attr({tabindex:-1});var t=g("body");const p=()=>{m.remove(),h.data.tree.clearSelection()};var d=a=>{h.fn.colorFolders(c.map(a=>a.id),a),p()};for(const f of h.data.contextmenu.list)if(!(!h.globals.data.rights.c&&"c"==f.right||!h.globals.data.rights.v&&"v"==f.right||!h.globals.data.rights.e&&"e"==f.right||!h.globals.data.rights.d&&"d"==f.right||"attachment"!==h.globals.data.type&&"download"==f.id)){var o=g("<div>").addClass("mcmd-item").attr({"data-id":f.id}),r=g("<div>").addClass("mcmd-icon").html(f.icon),l=g("<div>").addClass("mcmd-title").text(f.title);switch(m.append(o.append(r,l)),f.id){case"create":m.append(g("<div>").addClass("mcmd-splitter"));break;case"color":{const u=g("<div>").addClass("mcmd-submenu");new MEDIACOMMANDER.PLUGINS.COLORPICKER(e.color,u,d),o.append(u),o.on("mouseover mouseout",a=>{u.toggleClass("mcmd-active","mouseover"==a.type),"mouseover"!==a.type&&m.focus()})}break;case"paste":o.toggleClass("mcmd-disabled",null==h.data.folder.copy);break;case"delete":o.addClass("mcmd-alert")}}var i=(a=a.originalEvent).clientY,a=a.clientX;m.css({top:i,left:a}).on("blur",a=>{a.currentTarget.contains(a.relatedTarget)||p()}).on("click",".mcmd-item",a=>{switch(g(a.target).data("id")){case"create":h.data.ticket?h.fn.onFolderCreateBuiltin(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"rename":n.dblclick(),p();break;case"copy":h.data.ticket?h.fn.onFolderCopy(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"paste":h.data.ticket?h.fn.onFolderPaste(s):h.notify.show(h.globals.msg.upgrade,"mcmd-upgrade"),p();break;case"delete":h.fn.onFolderDelete(c),p();break;case"download":h.fn.onFolderDownload(c),p()}}),t.append(m),m.focus()}}},onSearchInput:a=>{h.fn.filterFolders(a.target.value)},onSearchClear:()=>{g("#mcmd-search-input").val(""),h.fn.filterFolders()},onAttachmentFolderEnter:a=>{h.data.dragdrop.$target=g(a.currentTarget).addClass("mcmd-droppable")},onAttachmentFolderLeave:()=>{h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null},onAttachmentFolderUnderPointer:a=>{a=g(document.elementFromPoint(a.originalEvent.touches[0].clientX,a.originalEvent.touches[0].clientY)).closest(".mcmd-tree-item"),h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null,a.length&&(h.data.dragdrop.$target=a.addClass("mcmd-droppable"))},onAttachmentDown:e=>{var t="touchstart"===e.type&&e.originalEvent.touches&&1==e.originalEvent.touches.length;if(1===e.which||t)if(h.data.media){if(h.data.mediaBrowse){t||e.preventDefault(),t||e.stopImmediatePropagation();const a=[];g('.media-frame .media-frame-content .attachment[aria-checked="true"]').each(function(){a.push(g(this).attr("data-id"))}),0==a.length&&a.push(g(e.currentTarget).attr("data-id")),a.length&&(h.data.dragdrop.isTouch=t,h.data.dragdrop.items=a,h.data.dragdrop.$ghost.text("Move "+a.length+" items").appendTo("body"),t?(document.addEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).on("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).on("touchmove",h.fn.onAttachmentMove),g(window).on("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.on("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.on("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).on("mousemove",h.fn.onAttachmentMove),g(window).on("mouseup",h.fn.onAttachmentUp)))}}else{t||e.preventDefault(),t||e.stopImmediatePropagation();const d=[];let a="post";switch(h.globals.data.type){case"attachment":a="media";break;case"users":a="users";break;case"plugins":a="checked"}g(`#the-list input[name='${a}[]']:checked`).each(function(){d.push(g(this).val())}),0==d.length&&d.push(g(e.currentTarget).find("input").val()),d.length&&(h.data.dragdrop.isTouch=t,h.data.dragdrop.items=d,h.data.dragdrop.$ghost.text("Move "+d.length+" items").appendTo("body"),t?(document.addEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).on("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).on("touchmove",h.fn.onAttachmentMove),g(window).on("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.on("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.on("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).on("mousemove",h.fn.onAttachmentMove),g(window).on("mouseup",h.fn.onAttachmentUp)))}},onAttachmentMove:a=>{h.data.dragdrop.items&&h.data.dragdrop.items.length&&(a=h.data.dragdrop.isTouch?a.originalEvent.touches[0]:a,h.data.dragdrop.$ghost.addClass("mcmd-active").css({top:a.clientY+5+"px",left:a.clientX+5+"px"}))},onAttachmentUp:()=>{var a=h.data.dragdrop.$target?h.data.dragdrop.$target.attr("data-id"):null,e=h.data.dragdrop.items;h.data.dragdrop.$ghost.text("").removeClass("mcmd-active").detach(),h.data.dragdrop.$target&&h.data.dragdrop.$target.removeClass("mcmd-droppable"),h.data.dragdrop.$target=null,h.data.dragdrop.items=null,clearTimeout(h.data.dragdrop.timerId),h.data.dragdrop.timerId=null,h.data.dragdrop.isTouch?(document.removeEventListener("touchmove",h.fn.onTouchMove,{passive:!1}),g(window).off("touchmove",h.fn.onAttachmentFolderUnderPointer),g(window).off("touchmove",h.fn.onAttachmentMove),g(window).off("touchend",h.fn.onAttachmentUp)):(h.data.ui.$sidebar.off("mouseenter",".mcmd-tree-item",h.fn.onAttachmentFolderEnter),h.data.ui.$sidebar.off("mouseleave",".mcmd-tree-item",h.fn.onAttachmentFolderLeave),g(window).off("mousemove",h.fn.onAttachmentMove),g(window).off("mouseup",h.fn.onAttachmentUp)),h.fn.dropAttachments(a,e)},onMediaModalPrepare:()=>{},onMediaModalOpen:()=>{h.data.modal||(h.data.modal=!0,h.data.ticket||wp&&wp.blocks?h.fn.loadSidebar():h.fn.loadProposal())},onMediaModalClose:()=>{h.data.modal=!1,h.data.ui.$container&&h.data.ui.$container.remove(),h.data.ui.$minitools&&h.data.ui.$minitools.remove(),h.data.ui.$mediaframe&&h.data.ui.$mediaframe.removeClass("mcmd-active")},onAjaxComplete:(a,e,t)=>{null!=t.data&&"string"==typeof t.data&&-1<t.data.indexOf("action=delete-post")&&(t=(t=h.data.tree.getFlatData())?t.map(a=>a.id):null,h.fn.activateFolder(h.data.folder.active,!1,!0),h.fn.updateFoldersAttachCount(t),h.fn.updateNoticeAndSearch())},onShowMediaDetails:a=>{var e,t;(a=g(a.target)).hasClass("mcmd-has-preview-details")||(e=a.attr("data-id"))&&(t=window.wp.media.attachment(e)).attributes&&t.attributes.preview_details&&(a.addClass("mcmd-has-preview-details"),g(".attachment[data-id="+e+"] .attachment-preview").prepend(t.attributes.preview_details))},onTouchMove:a=>{a.preventDefault(),clearTimeout(h.data.dragdrop.timerId),a.touches[0].clientY<30?h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,-window.innerHeight/5),150):a.touches[0].clientY>window.innerHeight-30&&(h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,window.innerHeight/5),150))},scroll:a=>{window.scrollBy({top:a,behavior:"smooth"}),h.data.dragdrop.timerId=setTimeout(h.fn.scroll.bind(null,a),150)},formatBytes:a=>{let e=0,t=parseInt(a,10)||0;for(;1024<=t&&++e;)t/=1024;return t.toFixed(t<10&&0<e?1:0)+" "+["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e]},uploader:{build:()=>{h.data.uploader.$container=g("<div>").addClass("mcmd-uploader"),h.data.uploader.$header=g("<div>").addClass("mcmd-header").text("Upload"),h.data.uploader.$title=g("<div>").addClass("mcmd-title"),h.data.uploader.$count=g("<div>").addClass("mcmd-count"),h.data.uploader.$close=g("<div>").addClass("mcmd-close").html('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d=" M 7.734 6.281 L 6.328 7.688 L 10.609 11.969 L 6.266 16.313 L 7.672 17.719 L 12.016 13.375 L 16.328 17.688 L 17.734 16.281 L 13.422 11.969 L 17.672 7.719 L 16.266 6.313 L 12.016 10.563 L 7.734 6.281 Z "></path></svg>'),h.data.uploader.$data=g("<div>").addClass("mcmd-data"),h.data.uploader.$container.append(h.data.uploader.$header.append(h.data.uploader.$title,h.data.uploader.$count,h.data.uploader.$close),h.data.uploader.$data),h.data.ui.$container.append(h.data.uploader.$container),h.data.uploader.$close.on("click",h.fn.uploader.close)},open:()=>{h.data.uploader.$container.addClass("mcmd-active")},close:()=>{h.data.uploader.$container.removeClass("mcmd-active"),h.data.uploader.$close.removeClass("mcmd-active"),h.data.uploader.$data.empty(),h.data.uploader.list.filter(a=>!a.loaded).length&&(h.data.uploader.instance.stop(),h.fn.uploader.complete()),h.data.uploader.list=[]},complete:()=>{var a=h.data.uploader.list.map(a=>a.folder).filter((a,e,t)=>t.indexOf(a)==e);h.fn.activateFolder(h.data.folder.active,!1,!0),h.fn.updateFoldersAttachCount(a),h.fn.updateNoticeAndSearch()},addFile:a=>{var e={id:a.id,folder:a._folder,loaded:!1},e=(h.data.uploader.list.push(e),h.data.tree.getItem(a._folder)),t=g("<div>").addClass("mcmd-item").attr({"data-id":a.id}),d=g("<div>").addClass("mcmd-title").text(a.name),a=g("<div>").addClass("mcmd-info").text(h.fn.formatBytes(a.size)+(e?" ["+e.title+"]":""));h.data.uploader.$data.prepend(t.append(d,a))},completeFile:a=>{h.data.uploader.$data.find(`.mcmd-item[data-id="${a.id}"]`).addClass("mcmd-loaded");for(const e of h.data.uploader.list)if(e.id===a.id){e.loaded=!0;break}h.fn.uploader.updateHeader()},updateHeader:()=>{var a=h.data.uploader.list.filter(a=>a.loaded).length;h.data.uploader.$count.text(a+" / "+h.data.uploader.list.length)}},replacemedia:{open:a=>{const e={data:{$modal:g("<div>").addClass("mcmd-modal"),$form:g("#mcmd-form-replace-media").clone(),attachment:g(a).attr("data-attachment-id"),file:null},fn:{build:()=>{e.data.$fileDropZone=e.data.$form.find(".mcmd-file-drop-zone"),e.data.$fileUpload=e.data.$form.find(".mcmd-file-upload"),e.data.$imagePreview=e.data.$form.find(".mcmd-image-preview"),e.data.$fileSelect=e.data.$form.find(".mcmd-file-select"),e.data.$fileSubmit=e.data.$form.find(".mcmd-btn.mcmd-submit"),e.data.$loader=e.data.$form.find(".mcmd-loader"),g("body").append(e.data.$modal.append(e.data.$form)),setTimeout(()=>{e.data.$modal.addClass("mcmd-active"),e.data.$form.addClass("mcmd-active")})},bind:()=>{e.data.$form.on("click",".mcmd-close",e.fn.close),e.data.$form.on("click",".mcmd-submit",e.fn.submit),e.data.$modal.on("dragenter dragover drop",()=>!1),e.data.$fileUpload.on("change",e.fn.selectFile),e.data.$fileSelect.on("click",()=>{e.data.$fileUpload.click()}),(new XMLHttpRequest).upload&&(e.data.$fileDropZone.on("dragover dragleave",e.fn.dragHover),e.data.$fileDropZone.on("drop",e.fn.selectFile))},loading:a=>{e.data.$loader.toggleClass("mcmd-active",a)},dragHover:a=>(a.currentTarget.contains(a.relatedTarget)||e.data.$fileDropZone.toggleClass("mcmd-hover","dragover"===a.type),!1),selectFile:a=>{e.data.file=null,e.data.$fileSubmit.addClass("mcmd-hidden"),e.fn.dragHover(a),1==(a=a.originalEvent.target.files||a.originalEvent.dataTransfer.files).length?(a=a[0],/\.(?=gif|jpg|png|jpeg)/gi.test(a.name)?(e.data.file=a,e.data.$fileDropZone.addClass("mcmd-preview"),e.data.$imagePreview.get(0).src=URL.createObjectURL(e.data.file),e.data.$fileSubmit.removeClass("mcmd-hidden")):(e.data.$fileDropZone.removeClass("mcmd-preview"),e.data.$fileDropZone.get(0).reset())):h.notify.show(h.globals.msg.failed,"mcmd-failed")},show:()=>{e.fn.build(),e.fn.bind()},close:()=>{e.data.$modal.remove()},submit:()=>{var a;null!=e.data.file&&((a=new FormData).append("file",e.data.file),a.append("attachment",e.data.attachment),e.fn.loading(!0),g.ajax({url:h.globals.api.url+"/replace-media",type:"POST",data:a,processData:!1,contentType:!1,headers:{"X-WP-Nonce":h.globals.api.nonce}}).done(a=>{a&&a.success?(e.fn.close(),h.notify.show(h.globals.msg.success,"mcmd-success"),h.fn.activateFolder(h.data.folder.active,!1,!0),h.data.editAttachments&&h.data.editAttachments.updateMediaData()):h.notify.show(h.globals.msg.failed,"mcmd-failed")}).fail(()=>{h.notify.show(h.globals.msg.failed,"mcmd-failed")}).always(()=>{e.fn.loading(!1)}))}}};e.fn.show()}}}};g(()=>{h.fn.run()}),window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.APP=h}(jQuery); -
mediacommander/trunk/assets/js/tree.js
r3083414 r3101075 1 !function(u){"use strict";const s={TITLE:"title",SELECT:"select",COLLAPSE:"collapse",LABEL:"label",COLOR:"color"},t={data:null,icon:{normal:'<svg viewBox="0 0 24 24">\n <path d="m1.786 21h20.428c0.434 0 0.786-0.352 0.786-0.786v-14.428c0-0.434-0.352-0.786-0.786-0.786h-11.214l-0.824-1.639c-0.097-0.194-0.352-0.352-0.569-0.352l-7.821-8e-3c-0.434-1e-3 -0.786 0.351-0.786 0.785v16.428c0 0.434 0.352 0.786 0.786 0.786z" fill="currentColor" filter="invert(0.05) brightness(0.8)"/>\n <path d="M 1.786,21 H 22.214 C 22.648,21 23,20.648 23,20.214 V 7 H 1 V 20.214 C 1,20.648 1.352,21 1.786,21 Z" fill="currentColor" style="filter:invert(0.1)"/>\n</svg>'},callback:{loading:null,move:null,collapse:null}},n={id:null,color:null,title:null,state:{selected:!1,collapsed:!1},items:[]},d={extend:function(t){t=t||{};for(let e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var i in n)n.hasOwnProperty(i)&&("object"==typeof n[i]&&null!=n[i]?n[i]instanceof Array?t[i]=n[i].slice(0):t[i]=d.extend(t[i],n[i]):t[i]=n[i])}return t},extendTreeCfg:function(e){ e=d.extend({},t,e);return delete e.data,e},extendTreeItemCfg:function(e){e=d.extend({},n,e);return null==e.id&&(e.id=d.uuid()),e.state.selected=!1,e.items=[],e},isArray:function(e){return Array.isArray(e)},isString:function(e){return"string"==typeof e},uuid:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}},i=function(){const g=new WeakMap;function e(e,t){g.set(this,{$container:null,dragdrop:{enabled:!0,item:null,active:{flag:!1,x:0,y:0,offset:10},$ghost:null,$target:null,type:null},select:{list:[]},config:null,data:[],ready:!1}),this._init(e,t)}return e.prototype={get VERSION(){return"1.0.0"},_init:function(e,t){var n=g.get(this);n.$container=u(e),n.$container.length?(n.config=d.extendTreeCfg(t),n.ready=!1,this._create(t?t.data:null)):console.error("Tree: can't find the tree container")},_create:function(e){this._buildDOM(),this._bind(),this._ready(e)},_buildDOM:function(){var e=g.get(this),t=(e.$container.addClass("mcmd-tree").attr({tabindex:0}),e.dragdrop.$ghost=u("<div>").addClass("mcmd-tree-drag-ghost"),u("<div>").addClass("mcmd-tree-nodes"));e.$container.append(t)},_bind:function(){var e=g.get(this);e._onToggleClick=this._onToggleClick.bind(this),e._onItemClick=this._onItemClick.bind(this),e._onKeyDown=this._onKeyDown.bind(this),e._onItemMouseDown=this._onItemMouseDown.bind(this),e._onItemMouseEnter=this._onItemMouseEnter.bind(this),e._onItemMouseLeave=this._onItemMouseLeave.bind(this),e._onItemMouseMove=this._onItemMouseMove.bind(this),e._onItemMouseUp=this._onItemMouseUp.bind(this),e.$container.on("keydown",e._onKeyDown),e.$container.on("click",".mcmd-tree-toggle",e._onToggleClick),e.$container.on("click",".mcmd-tree-item",e._onItemClick),e.$container.on("mousedown",".mcmd-tree-item",e._onItemMouseDown)},_loading:function(e){var t=g.get(this);t.config.callback.loading&&"function"==typeof t.config.callback.loading&&t.config.callback.loading.call(this,e)},_ready:function(e){for(var t in g.get(this).$container.addClass("mcmd-tree-ready"),this._loading(!0),e)this._addItem(e[t]);this._loading(!1)},_getData:function(){return g.get(this).data},_getFlatData:function(){var e=g.get(this);const r=[];return function e(t,n,i){for(var a in t)a=t[a],r.push({id:a.id,color:a.color,title:a.title,parent:n,level:i,collapsed:a.state.collapsed}),e(a.items,a.id,i+1)}(e.data,null,0),r.length?r:null},_filter:function(a){var e=g.get(this);a?(e.$container.find(".mcmd-tree-node.mcmd-hidden").removeClass("mcmd-hidden"),e.$container.find(".mcmd-tree-title").each((e,t)=>{var t=u(t),n=t.text(),i=t.parent().parent();!function(t,n){if(t){let e=t.replace(/[.+^${}()|[\]\\]/g,"\\$&");return e=e.includes("*")||e.includes("?")?e:"*"+e+"*",new RegExp(`^${e.replace(/\*/g,".*").replace(/\?/g,".")}$`,"i").test(n)}}(a,n)?(t.removeClass("mcmd-bold"),i.addClass("mcmd-hidden")):(t.addClass("mcmd-bold"),i.parents(".mcmd-tree-node").removeClass("mcmd-hidden"))})):(e.$container.find(".mcmd-tree-node.mcmd-hidden").removeClass("mcmd-hidden"),e.$container.find(".mcmd-tree-title.mcmd-bold").removeClass("mcmd-bold"))},_addItemElement:function(e,t){var n,i,a,r,l,d=g.get(this);let o=null;t?(t=d.$container.find(`[data-id='${t.id}']`)).length&&!(o=u(t.parent().find(".mcmd-tree-nodes").get(0))).length&&(o=u("<div>").addClass("mcmd-tree-nodes"),t.addClass("mcmd-tree-has-children"),t.parent().append(o)):(o=u(d.$container.find(".mcmd-tree-nodes").get(0)),d.$container.addClass("mcmd-tree-has-children")),o&&(t=u("<div>").addClass("mcmd-tree-node"),n=u("<div>").addClass("mcmd-tree-item").attr({"data-id":e.id}),i=u("<div>").addClass("mcmd-tree-toggle"),a=u("<div>").addClass("mcmd-tree-icon").append(d.config.icon.normal),r=u("<div>").addClass("mcmd-tree-title"),l=u("<div>").addClass("mcmd-tree-label"),o.append(t.append(n.append(i,a,r,l))),this._updateItemElement(e,[s.TITLE,s.SELECT,s.COLLAPSE,s.LABEL,s.COLOR]),e.state.selected)&&d.select.list.push(e)},_removeItemElement:function(e,t){var n=g.get(this);n.$container.find(`[data-id='${e.id}']`).parent().remove(),e.state.selected&&n.select.list.splice(n.select.list.indexOf(e),1),t&&0===t.items.length&&(e=n.$container.find(`[data-id='${t.id}']`),n=u(e.parent().find(".mcmd-tree-nodes").get(0)),e.removeClass("mcmd-tree-has-children"),n.remove())},_updateItemElement:function(e,t){var n=g.get(this),i=e?n.$container.find(`[data-id='${e.id}']`):null;if(i.length)for(var a in t=d.isString(t)?[t]:t)switch(t[a]){case s.TITLE:i.find(".mcmd-tree-title").text(e.title);break;case s.SELECT:i.toggleClass("mcmd-tree-selected",e.state.selected);break;case s.COLLAPSE:i.toggleClass("mcmd-tree-collapsed",e.state.collapsed);break;case s.LABEL:i.find(".mcmd-tree-label").toggleClass("mcmd-tree-active",!!e.count).text(e.count);break;case s.COLOR:i.find(".mcmd-tree-icon").css({color:e.color||""})}},_addItem:function(e,t){const r=g.get(this),l=this;return function e(t,n){if(t&&t.id&&l._getItem(t.id))return null;var i=d.extendTreeItemCfg(t),n=l._getItem(n);if((n?n.items:r.data).push(i),l._addItemElement(i,n),t)for(const a in t.items)e(t.items[a],i.id);return i}(e,t)},_getItem:function(e){return function t(n,i){let a=null;if(n)for(let e=0;e<n.length&&(a=n[e]).id!==i&&!(a=t(a.items,i));e++);return a}(g.get(this).data,e)},_getParentItem:function(e){return function t(n,i,a){let r=null;if(n)for(let e=0;e<n.length;e++){if((r=n[e]).id===i){r=a;break}if(r=t(r.items,i,r))break}return r}(g.get(this).data,e,null)},_getPrevItem:function(e,l){var t=g.get(this);const d=[];return function t(n,i){let a=null;if(n)for(let e=0;e<n.length;e++){if((a=n[e]).id===i){var r;if(0<e)for(a=n[e-1];(!a.state.collapsed||l)&&a.items.length;)a=a.items[a.items.length-1];else a=null,d.length&&(r=d[d.length-1],a=r.items[r.index]);break}if(d.push({index:e,items:n}),a=t(a.items,i,a),d.pop(),a)break}return a}(t.data,e)},_getNextItem:function(e,l){var t=g.get(this);const d=[];return function t(n,i){let a=null;if(n)for(let e=0;e<n.length;e++){if((a=n[e]).id===i){if(a.state.collapsed&&!l||!a.items.length)if(e<n.length-1)a=n[e+1];else for(a=null,e=d.length;e--;){var r=d[e];if(r.index<r.items.length-1){a=r.items[r.index+1];break}}else a=a.items.length?a.items[0]:null;break}if(d.push({index:e,items:n}),a=t(a.items,i,a),d.pop(),a)break}return a}(t.data,e)},_getSelectedItems:function(){return g.get(this).select.list},_moveItem:function(t,n,e){var i=g.get(this),a=this._getItem(t),r=this._getItem(n);if(null!=a&&null!=r){this._loading(!0);var l=i.$container.find(`[data-id='${a.id}']`).parent(),d=i.$container.find(`[data-id='${r.id}']`),o=d.parent(),s=a?this._getParentItem(a.id):null,r=r?this._getParentItem(r.id):null,c=s?s.items:i.data,m=r?r.items:i.data;for(let e=0;e<c.length;e++)if(c[e].id===t){c.splice(e,1);break}switch(l.detach(),0===c.length&&s&&(r=i.$container.find(`[data-id='${s.id}']`),i=u(r.parent().find(".mcmd-tree-nodes").get(0)),r.removeClass("mcmd-tree-has-children"),i.remove()),e){case"inside":for(let t=0;t<m.length;t++)if(m[t].id===n){m[t].items.push(a);let e=u(d.parent().find(".mcmd-tree-nodes").get(0));e.length||(e=u("<div>").addClass("mcmd-tree-nodes"),d.addClass("mcmd-tree-has-children"),d.parent().append(e)),e.append(l);break}break;case"before":for(let e=0;e<m.length;e++)if(m[e].id===n){m.splice(e,0,a);break}o.before(l);break;case"after":for(let e=0;e<m.length;e++)if(m[e].id===n){m.splice(e+1,0,a);break}o.after(l)}this._loading(!1)}},_removeItem:function(e){var t=g.get(this);const l=this;return function n(e,i){let a=null;if(i)for(let t=0;t<i.length;t++){if(a=i[t],i[t].id===e){let e=a.items.length;for(;e--;)n(a.items[e].id,a.items);var r=l._getParentItem(a.id);i.splice(t,1),l._removeItemElement(a,r);break}if(a=n(e,i[t].items))break}return a}(e,t.data)},_collapseItem:function(t,n){var i=g.get(this),t=this._getItem(t);if(t){let e=!1;void 0===n?(e=!0,t.state.collapsed=!t.state.collapsed):t.state.collapsed!==n&&(e=!0,t.state.collapsed=n),e&&(this._updateItemElement(t,s.COLLAPSE),i.config.callback.collapse)&&"function"==typeof i.config.callback.collapse&&i.config.callback.collapse.call(this,t)}},_selectItem:function(t,n){var i=g.get(this),t=this._getItem(t);if(t){let e=!1;void 0===n?(e=!0,t.state.selected=!t.state.selected):t.state.selected!==n&&(e=!0,t.state.selected=n),e&&(this._updateItemElement(t,s.SELECT),t.state.selected&&-1===i.select.list.indexOf(t)?i.select.list.push(t):i.select.list.splice(i.select.list.indexOf(t),1))}},_selectItemRange:function(e,t){var n=g.get(this),i=[];if(e&&t&&e!==t){!function t(n,i,a,r){if(a)for(let e=0;e<a.length;e++){var l=a[e];if(l.id===n){if(r.push(l),1<r.length)return 1}else if(l.id===i){if(r.push(l),1<r.length)return 1}else r.length&&r.push(l);if(l.items.length&&!l.state.collapsed&&t(n,i,l.items,r))return 1}}(e,t,n.data,i);for(let e=0;e<i.length;e++)i[e].state.selected||this._selectItem(i[e].id,!0,!0)}else t&&this._selectItem(t,!0)},_clearSelection:function(){var t=g.get(this);for(let e=0;e<t.select.list.length;e++){var n=t.select.list[e];n.state.selected=!1,this._updateItemElement(n,s.SELECT)}t.select.list=[]},_getDragDropType:function(e,t){e=e.getBoundingClientRect(),t=t-window.scrollY-e.top;return t<e.height/4?"before":t>3*e.height/4?"after":"inside"},_onKeyDown:function(e){var t=g.get(this),n=t.select.list[t.select.list.length-1];if(document.activeElement===t.$container.get(0)&&n){switch(e.keyCode){case 38:var i=this._getPrevItem(n.id,!1);i&&(this._clearSelection(),this._selectItem(i.id,!0));break;case 40:i=this._getNextItem(n.id,!1);i&&(this._clearSelection(),this._selectItem(i.id,!0));break;case 37:this._collapseItem(n.id,!0);break;case 39:this._collapseItem(n.id,!1)}e.preventDefault()}},_onToggleClick:function(e){e.preventDefault(),e.stopImmediatePropagation();e=u(e.currentTarget).parent(),e=e?e.attr("data-id"):null;this._collapseItem(e)},_onItemClick:function(e){var t=u(e.currentTarget),t=t?t.attr("data-id"):null;e.shiftKey||e.ctrlKey?e.ctrlKey?this._selectItem(t):e.shiftKey&&(e=(e=g.get(this)).select.list.length?e.select.list[e.select.list.length-1].id:null,this._selectItemRange(e,t)):this._clearSelection()},_onItemMouseDown:function(e){var t,n,i,a;1!==e.which||e.shiftKey||e.ctrlKey||u(e.target).hasClass("mcmd-tree-toggle")||(e.stopImmediatePropagation(),t=g.get(this),i=u(e.currentTarget).attr("data-id"),i=this._getItem(i),t.dragdrop.item=i,n=u("<div>").addClass("mcmd-tree-icon"),i=u("<div>").addClass("mcmd-tree-title").text(i.title),a=u("<div>").addClass("mcmd-tree-label").text(t.select.list.length),t.dragdrop.active.flag=!1,t.dragdrop.active.x=e.pageX,t.dragdrop.active.y=e.pageY,t.dragdrop.$ghost.empty().append(n,i,a).appendTo("body"),t.$container.addClass("mcmd-tree-dragging"),t.$container.on("mouseenter",".mcmd-tree-item",t._onItemMouseEnter),t.$container.on("mouseleave",".mcmd-tree-item",t._onItemMouseLeave),u(window).on("mousemove",t._onItemMouseMove),u(window).on("mouseup",t._onItemMouseUp))},_onItemMouseEnter:function(e){var t=g.get(this);t.dragdrop.$target=u(e.currentTarget),t.dragdrop.$target&&t.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after")},_onItemMouseLeave:function(){var e=g.get(this);e.dragdrop.$target&&e.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after"),e.dragdrop.$target=null},_onItemMouseMove:function(e){var t,n=g.get(this);n.dragdrop.active.flag?(n.dragdrop.$ghost.addClass("mcmd-tree-active").css({top:e.clientY+5+"px",left:e.clientX+5+"px"}),n.dragdrop.$target&&(t=this._getDragDropType(n.dragdrop.$target.get(0),e.pageY),n.dragdrop.type!==t)&&(n.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after").addClass("mcmd-tree-"+t),n.dragdrop.type=t)):(n.dragdrop.active.flag=Math.abs(n.dragdrop.active.x-e.pageX)>n.dragdrop.active.offset||Math.abs(n.dragdrop.active.y-e.pageY)>n.dragdrop.active.offset,n.dragdrop.active.flag&&((t=n.dragdrop.item)&&!t.state.selected&&(this._clearSelection(),this._selectItem(t.id)),n.dragdrop.$ghost.find(".mcmd-tree-label").text(n.select.list.length)))},_onItemMouseUp:function(){var e=g.get(this);if(e.dragdrop.$ghost.empty().css({top:null,left:null}).removeClass("mcmd-tree-active").detach(),e.$container.removeClass("mcmd-tree-dragging"),e.dragdrop.active.flag&&e.dragdrop.$target){var t=[],n=e.dragdrop.$target?e.dragdrop.$target.attr("data-id"):null,i=e.dragdrop.type;if(e.dragdrop.$ghost.detach().empty(),e.dragdrop.$target&&e.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after"),e.dragdrop.$target=null,e.dragdrop.type=null,e.dragdrop.item=null,e.$container.removeClass("mcmd-tree-dragging"),!function t(n,i,a){if(n)for(let e=0;e<n.length;e++){var r=n[e];if(r.state.selected){let n=!0;for(let t=0;t<i.length;t++)for(let e=0;e<a.length;e++)if(a[e].id===i[t].id){n=!1;break}n&&a.push(r)}r.items.length&&(i.push(r),t(r.items,i,a),i.pop())}}(e.data,[],t),function t(n,i){for(let e=0;e<n.length;e++){if(n[e].id===i)return;if(n[e].items.length&&!t(n[e].items,i))return}return 1}(t,n)){var a,r,l=[];for(let e=0;e<t.length;e++)l.push(t[e].id);function d(t,n,i){if("after"===i){let e=t.length;for(;e--;)this._moveItem(t[e],n,i)}else for(let e=0;e<t.length;e++)this._moveItem(t[e],n,i)}e.config.callback.move&&"function"==typeof e.config.callback.move?(a=(r="inside"===i?this._getItem(n):this._getParentItem(n))?r.id:null,r=(r?r.items:e.data).map(e=>e.id),e.config.callback.move.call(this,l,a,n,r,i,d)):d.call(this,l,n,i)}}e.$container.off("mouseenter",".mcmd-tree-item",e._onItemMouseEnter),e.$container.off("mouseleave",".mcmd-tree-item",e._onItemMouseLeave),u(window).off("mousemove",e._onItemMouseMove),u(window).off("mouseup",e._onItemMouseUp)},getIcon:function(){return g.get(this).config.icon.normal},getData:function(){return this._getData()},hasItems:function(){var e=g.get(this);return e.data&&0<e.data.length},getFlatData:function(){return this._getFlatData()},getItem:function(e){return this._getItem(e)},getParentItem:function(e){return this._getParentItem(e)},selectItem:function(e,t){this._selectItem(e,t)},getSelectedItems:function(){return this._getSelectedItems()},clearSelection:function(){this._clearSelection()},filter:function(e){this._filter(e)},addItem:function(e,t){return this._addItem(e,t)},collapseItem:function(e,t){return this._collapseItem(e,t)},removeItem:function(e){this._removeItem(e)},updateItemTitle:function(e,t){e=this._getItem(e);e&&(e.title=t,this._updateItemElement(e,s.TITLE))},updateItemColor:function(e,t){e=this._getItem(e);e&&(e.color=t,this._updateItemElement(e,s.COLOR))},updateItemLabel:function(e,t){e=this._getItem(e);e&&(e.count=parseInt(t,10),this._updateItemElement(e,s.LABEL))},toggleDragDrop:function(e){var t=g.get(this);e?(t.dragdrop.enabled||t.$container.on("mousedown",".mcmd-tree-item",t._onItemMouseDown),t.dragdrop.enabled=!0):(t.dragdrop.enabled&&t.$container.off("mousedown",".mcmd-tree-item",t._onItemMouseDown),t.dragdrop.enabled=!1)}},e}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.TREE=function(e,t){return new i(e,t)}}(jQuery);1 !function(u){"use strict";const s={TITLE:"title",SELECT:"select",COLLAPSE:"collapse",LABEL:"label",COLOR:"color"},t={data:null,icon:{normal:'<svg viewBox="0 0 24 24">\n <path d="m1.786 21h20.428c0.434 0 0.786-0.352 0.786-0.786v-14.428c0-0.434-0.352-0.786-0.786-0.786h-11.214l-0.824-1.639c-0.097-0.194-0.352-0.352-0.569-0.352l-7.821-8e-3c-0.434-1e-3 -0.786 0.351-0.786 0.785v16.428c0 0.434 0.352 0.786 0.786 0.786z" fill="currentColor" filter="invert(0.05) brightness(0.8)"/>\n <path d="M 1.786,21 H 22.214 C 22.648,21 23,20.648 23,20.214 V 7 H 1 V 20.214 C 1,20.648 1.352,21 1.786,21 Z" fill="currentColor" style="filter:invert(0.1)"/>\n</svg>'},callback:{loading:null,move:null,collapse:null}},n={id:null,color:null,title:null,state:{selected:!1,collapsed:!1},items:[]},d={extend:function(t){t=t||{};for(let e=1;e<arguments.length;e++){var n=arguments[e];if(n)for(var i in n)n.hasOwnProperty(i)&&("object"==typeof n[i]&&null!=n[i]?n[i]instanceof Array?t[i]=n[i].slice(0):t[i]=d.extend(t[i],n[i]):t[i]=n[i])}return t},extendTreeCfg:function(e){return delete(e=d.extend({},t,e)).data,e},extendTreeItemCfg:function(e){return null==(e=d.extend({},n,e)).id&&(e.id=d.uuid()),e.state.selected=!1,e.items=[],e},isArray:function(e){return Array.isArray(e)},isString:function(e){return"string"==typeof e},uuid:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}},i=function(){const g=new WeakMap;function e(e,t){g.set(this,{$container:null,dragdrop:{enabled:!0,item:null,active:{flag:!1,x:0,y:0,offset:10},$ghost:null,$target:null,type:null},select:{list:[]},config:null,data:[],ready:!1}),this._init(e,t)}return e.prototype={get VERSION(){return"1.0.0"},_init:function(e,t){var n=g.get(this);n.$container=u(e),n.$container.length?(n.config=d.extendTreeCfg(t),n.ready=!1,this._create(t?t.data:null)):console.error("Tree: can't find the tree container")},_create:function(e){this._buildDOM(),this._bind(),this._ready(e)},_buildDOM:function(){var e=g.get(this),t=(e.$container.addClass("mcmd-tree").attr({tabindex:0}),e.dragdrop.$ghost=u("<div>").addClass("mcmd-tree-drag-ghost"),u("<div>").addClass("mcmd-tree-nodes"));e.$container.append(t)},_bind:function(){var e=g.get(this);e._onToggleClick=this._onToggleClick.bind(this),e._onItemClick=this._onItemClick.bind(this),e._onKeyDown=this._onKeyDown.bind(this),e._onItemMouseDown=this._onItemMouseDown.bind(this),e._onItemMouseEnter=this._onItemMouseEnter.bind(this),e._onItemMouseLeave=this._onItemMouseLeave.bind(this),e._onItemMouseMove=this._onItemMouseMove.bind(this),e._onItemMouseUp=this._onItemMouseUp.bind(this),e.$container.on("keydown",e._onKeyDown),e.$container.on("click",".mcmd-tree-toggle",e._onToggleClick),e.$container.on("click",".mcmd-tree-item",e._onItemClick),e.$container.on("mousedown",".mcmd-tree-item",e._onItemMouseDown)},_loading:function(e){var t=g.get(this);t.config.callback.loading&&"function"==typeof t.config.callback.loading&&t.config.callback.loading.call(this,e)},_ready:function(e){for(var t in g.get(this).$container.addClass("mcmd-tree-ready"),this._loading(!0),e)this._addItem(e[t]);this._loading(!1)},_getData:function(){return g.get(this).data},_getFlatData:function(){var e=g.get(this);const r=[];return function e(t,n,i){for(var a in t)a=t[a],r.push({id:a.id,color:a.color,title:a.title,parent:n,level:i,collapsed:a.state.collapsed}),e(a.items,a.id,i+1)}(e.data,null,0),r.length?r:null},_filter:function(a){var e=g.get(this);a?(e.$container.find(".mcmd-tree-node.mcmd-hidden").removeClass("mcmd-hidden"),e.$container.find(".mcmd-tree-title").each((e,t)=>{var n=(t=u(t)).text(),i=t.parent().parent();!function(t){if(a){let e=a.replace(/[.+^${}()|[\]\\]/g,"\\$&");return e=e.includes("*")||e.includes("?")?e:"*"+e+"*",new RegExp(`^${e.replace(/\*/g,".*").replace(/\?/g,".")}$`,"i").test(t)}}(n)?(t.removeClass("mcmd-bold"),i.addClass("mcmd-hidden")):(t.addClass("mcmd-bold"),i.parents(".mcmd-tree-node").removeClass("mcmd-hidden"))})):(e.$container.find(".mcmd-tree-node.mcmd-hidden").removeClass("mcmd-hidden"),e.$container.find(".mcmd-tree-title.mcmd-bold").removeClass("mcmd-bold"))},_addItemElement:function(e,t){var n,i,a,r,l,d=g.get(this);let o=null;t?(t=d.$container.find(`[data-id='${t.id}']`)).length&&!(o=u(t.parent().find(".mcmd-tree-nodes").get(0))).length&&(o=u("<div>").addClass("mcmd-tree-nodes"),t.addClass("mcmd-tree-has-children"),t.parent().append(o)):(o=u(d.$container.find(".mcmd-tree-nodes").get(0)),d.$container.addClass("mcmd-tree-has-children")),o&&(t=u("<div>").addClass("mcmd-tree-node"),n=u("<div>").addClass("mcmd-tree-item").attr({"data-id":e.id}),i=u("<div>").addClass("mcmd-tree-toggle"),a=u("<div>").addClass("mcmd-tree-icon").append(d.config.icon.normal),r=u("<div>").addClass("mcmd-tree-title"),l=u("<div>").addClass("mcmd-tree-label"),o.append(t.append(n.append(i,a,r,l))),this._updateItemElement(e,[s.TITLE,s.SELECT,s.COLLAPSE,s.LABEL,s.COLOR]),e.state.selected)&&d.select.list.push(e)},_removeItemElement:function(e,t){var n=g.get(this);n.$container.find(`[data-id='${e.id}']`).parent().remove(),e.state.selected&&n.select.list.splice(n.select.list.indexOf(e),1),t&&0===t.items.length&&(e=n.$container.find(`[data-id='${t.id}']`),n=u(e.parent().find(".mcmd-tree-nodes").get(0)),e.removeClass("mcmd-tree-has-children"),n.remove())},_updateItemElement:function(e,t){var n=g.get(this),i=e?n.$container.find(`[data-id='${e.id}']`):null;if(i.length)for(var a in t=d.isString(t)?[t]:t)switch(t[a]){case s.TITLE:i.find(".mcmd-tree-title").text(e.title);break;case s.SELECT:i.toggleClass("mcmd-tree-selected",e.state.selected);break;case s.COLLAPSE:i.toggleClass("mcmd-tree-collapsed",e.state.collapsed);break;case s.LABEL:i.find(".mcmd-tree-label").toggleClass("mcmd-tree-active",!!e.count).text(e.count);break;case s.COLOR:i.find(".mcmd-tree-icon").css({color:e.color||""})}},_addItem:function(e,t){const r=g.get(this),l=this;return function e(t,n){if(t&&t.id&&l._getItem(t.id))return null;var i=d.extendTreeItemCfg(t);if(((n=l._getItem(n))?n.items:r.data).push(i),l._addItemElement(i,n),t)for(const a in t.items)e(t.items[a],i.id);return i}(e,t)},_getItem:function(e){return function t(n,i){let a=null;if(n)for(let e=0;e<n.length&&(a=n[e]).id!==i&&!(a=t(a.items,i));e++);return a}(g.get(this).data,e)},_getParentItem:function(e){return function t(n,i,a){let r=null;if(n)for(let e=0;e<n.length;e++){if((r=n[e]).id===i){r=a;break}if(r=t(r.items,i,r))break}return r}(g.get(this).data,e,null)},_getPrevItem:function(e,l){var t=g.get(this);const d=[];return function t(n,i){let a=null;if(n)for(let e=0;e<n.length;e++){if((a=n[e]).id===i){var r;if(0<e)for(a=n[e-1];(!a.state.collapsed||l)&&a.items.length;)a=a.items[a.items.length-1];else a=null,d.length&&(r=d[d.length-1],a=r.items[r.index]);break}if(d.push({index:e,items:n}),a=t(a.items,i,a),d.pop(),a)break}return a}(t.data,e)},_getNextItem:function(e,l){var t=g.get(this);const d=[];return function t(n,i){let a=null;if(n)for(let e=0;e<n.length;e++){if((a=n[e]).id===i){if(a.state.collapsed&&!l||!a.items.length)if(e<n.length-1)a=n[e+1];else for(a=null,e=d.length;e--;){var r=d[e];if(r.index<r.items.length-1){a=r.items[r.index+1];break}}else a=a.items.length?a.items[0]:null;break}if(d.push({index:e,items:n}),a=t(a.items,i,a),d.pop(),a)break}return a}(t.data,e)},_getSelectedItems:function(){return g.get(this).select.list},_moveItem:function(t,n,e){var i=g.get(this),a=this._getItem(t),r=this._getItem(n);if(null!=a&&null!=r){this._loading(!0);var l=i.$container.find(`[data-id='${a.id}']`).parent(),d=i.$container.find(`[data-id='${r.id}']`),o=d.parent(),s=a?this._getParentItem(a.id):null,r=r?this._getParentItem(r.id):null,c=s?s.items:i.data,m=r?r.items:i.data;for(let e=0;e<c.length;e++)if(c[e].id===t){c.splice(e,1);break}switch(l.detach(),0===c.length&&s&&(r=i.$container.find(`[data-id='${s.id}']`),i=u(r.parent().find(".mcmd-tree-nodes").get(0)),r.removeClass("mcmd-tree-has-children"),i.remove()),e){case"inside":for(let t=0;t<m.length;t++)if(m[t].id===n){m[t].items.push(a);let e=u(d.parent().find(".mcmd-tree-nodes").get(0));e.length||(e=u("<div>").addClass("mcmd-tree-nodes"),d.addClass("mcmd-tree-has-children"),d.parent().append(e)),e.append(l);break}break;case"before":for(let e=0;e<m.length;e++)if(m[e].id===n){m.splice(e,0,a);break}o.before(l);break;case"after":for(let e=0;e<m.length;e++)if(m[e].id===n){m.splice(e+1,0,a);break}o.after(l)}this._loading(!1)}},_removeItem:function(e){var t=g.get(this);const l=this;return function n(e,i){let a=null;if(i)for(let t=0;t<i.length;t++){if(a=i[t],i[t].id===e){let e=a.items.length;for(;e--;)n(a.items[e].id,a.items);var r=l._getParentItem(a.id);i.splice(t,1),l._removeItemElement(a,r);break}if(a=n(e,i[t].items))break}return a}(e,t.data)},_collapseItem:function(t,n){var i=g.get(this);if(t=this._getItem(t)){let e=!1;void 0===n?(e=!0,t.state.collapsed=!t.state.collapsed):t.state.collapsed!==n&&(e=!0,t.state.collapsed=n),e&&(this._updateItemElement(t,s.COLLAPSE),i.config.callback.collapse)&&"function"==typeof i.config.callback.collapse&&i.config.callback.collapse.call(this,t)}},_selectItem:function(t,n){var i=g.get(this);if(t=this._getItem(t)){let e=!1;void 0===n?(e=!0,t.state.selected=!t.state.selected):t.state.selected!==n&&(e=!0,t.state.selected=n),e&&(this._updateItemElement(t,s.SELECT),t.state.selected&&-1===i.select.list.indexOf(t)?i.select.list.push(t):i.select.list.splice(i.select.list.indexOf(t),1))}},_selectItemRange:function(e,t){var n=g.get(this),i=[];if(e&&t&&e!==t){!function t(n,i,a,r){if(a)for(let e=0;e<a.length;e++){var l=a[e];if(l.id===n){if(r.push(l),1<r.length)return 1}else if(l.id===i){if(r.push(l),1<r.length)return 1}else r.length&&r.push(l);if(l.items.length&&!l.state.collapsed&&t(n,i,l.items,r))return 1}}(e,t,n.data,i);for(let e=0;e<i.length;e++)i[e].state.selected||this._selectItem(i[e].id,!0,!0)}else t&&this._selectItem(t,!0)},_clearSelection:function(){var t=g.get(this);for(let e=0;e<t.select.list.length;e++){var n=t.select.list[e];n.state.selected=!1,this._updateItemElement(n,s.SELECT)}t.select.list=[]},_getDragDropType:function(e,t){return e=e.getBoundingClientRect(),(t=t-window.scrollY-e.top)<e.height/4?"before":t>3*e.height/4?"after":"inside"},_onKeyDown:function(e){var t=g.get(this),n=t.select.list[t.select.list.length-1];if(document.activeElement===t.$container.get(0)&&n){switch(e.keyCode){case 38:var i=this._getPrevItem(n.id,!1);i&&(this._clearSelection(),this._selectItem(i.id,!0));break;case 40:(i=this._getNextItem(n.id,!1))&&(this._clearSelection(),this._selectItem(i.id,!0));break;case 37:this._collapseItem(n.id,!0);break;case 39:this._collapseItem(n.id,!1)}e.preventDefault()}},_onToggleClick:function(e){e.preventDefault(),e.stopImmediatePropagation(),e=(e=u(e.currentTarget).parent())?e.attr("data-id"):null,this._collapseItem(e)},_onItemClick:function(e){var t=(t=u(e.currentTarget))?t.attr("data-id"):null;e.shiftKey||e.ctrlKey?e.ctrlKey?this._selectItem(t):e.shiftKey&&(e=(e=g.get(this)).select.list.length?e.select.list[e.select.list.length-1].id:null,this._selectItemRange(e,t)):this._clearSelection()},_onItemMouseDown:function(e){var t,n,i,a;1!==e.which||e.shiftKey||e.ctrlKey||u(e.target).hasClass("mcmd-tree-toggle")||(e.stopImmediatePropagation(),t=g.get(this),i=u(e.currentTarget).attr("data-id"),i=this._getItem(i),t.dragdrop.item=i,n=u("<div>").addClass("mcmd-tree-icon"),i=u("<div>").addClass("mcmd-tree-title").text(i.title),a=u("<div>").addClass("mcmd-tree-label").text(t.select.list.length),t.dragdrop.active.flag=!1,t.dragdrop.active.x=e.pageX,t.dragdrop.active.y=e.pageY,t.dragdrop.$ghost.empty().append(n,i,a).appendTo("body"),t.$container.addClass("mcmd-tree-dragging"),t.$container.on("mouseenter",".mcmd-tree-item",t._onItemMouseEnter),t.$container.on("mouseleave",".mcmd-tree-item",t._onItemMouseLeave),u(window).on("mousemove",t._onItemMouseMove),u(window).on("mouseup",t._onItemMouseUp))},_onItemMouseEnter:function(e){var t=g.get(this);t.dragdrop.$target=u(e.currentTarget),t.dragdrop.$target&&t.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after")},_onItemMouseLeave:function(){var e=g.get(this);e.dragdrop.$target&&e.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after"),e.dragdrop.$target=null},_onItemMouseMove:function(e){var t,n=g.get(this);n.dragdrop.active.flag?(n.dragdrop.$ghost.addClass("mcmd-tree-active").css({top:e.clientY+5+"px",left:e.clientX+5+"px"}),n.dragdrop.$target&&(t=this._getDragDropType(n.dragdrop.$target.get(0),e.pageY),n.dragdrop.type!==t)&&(n.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after").addClass("mcmd-tree-"+t),n.dragdrop.type=t)):(n.dragdrop.active.flag=Math.abs(n.dragdrop.active.x-e.pageX)>n.dragdrop.active.offset||Math.abs(n.dragdrop.active.y-e.pageY)>n.dragdrop.active.offset,n.dragdrop.active.flag&&((t=n.dragdrop.item)&&!t.state.selected&&(this._clearSelection(),this._selectItem(t.id)),n.dragdrop.$ghost.find(".mcmd-tree-label").text(n.select.list.length)))},_onItemMouseUp:function(){var e=g.get(this);if(e.dragdrop.$ghost.empty().css({top:null,left:null}).removeClass("mcmd-tree-active").detach(),e.$container.removeClass("mcmd-tree-dragging"),e.dragdrop.active.flag&&e.dragdrop.$target){var t=[],n=e.dragdrop.$target?e.dragdrop.$target.attr("data-id"):null,i=e.dragdrop.type;if(e.dragdrop.$ghost.detach().empty(),e.dragdrop.$target&&e.dragdrop.$target.removeClass("mcmd-tree-before mcmd-tree-inside mcmd-tree-after"),e.dragdrop.$target=null,e.dragdrop.type=null,e.dragdrop.item=null,e.$container.removeClass("mcmd-tree-dragging"),function t(n,i,a){if(n)for(let e=0;e<n.length;e++){var r=n[e];if(r.state.selected){let n=!0;for(let t=0;t<i.length;t++)for(let e=0;e<a.length;e++)if(a[e].id===i[t].id){n=!1;break}n&&a.push(r)}r.items.length&&(i.push(r),t(r.items,i,a),i.pop())}}(e.data,[],t),function t(n,i){for(let e=0;e<n.length;e++){if(n[e].id===i)return;if(n[e].items.length&&!t(n[e].items,i))return}return 1}(t,n)){var a,r,l=[];for(let e=0;e<t.length;e++)l.push(t[e].id);function d(t,n,i){if("after"===i){let e=t.length;for(;e--;)this._moveItem(t[e],n,i)}else for(let e=0;e<t.length;e++)this._moveItem(t[e],n,i)}e.config.callback.move&&"function"==typeof e.config.callback.move?(a=(r="inside"===i?this._getItem(n):this._getParentItem(n))?r.id:null,r=(r?r.items:e.data).map(e=>e.id),e.config.callback.move.call(this,l,a,n,r,i,d)):d.call(this,l,n,i)}}e.$container.off("mouseenter",".mcmd-tree-item",e._onItemMouseEnter),e.$container.off("mouseleave",".mcmd-tree-item",e._onItemMouseLeave),u(window).off("mousemove",e._onItemMouseMove),u(window).off("mouseup",e._onItemMouseUp)},getIcon:function(){return g.get(this).config.icon.normal},getData:function(){return this._getData()},hasItems:function(){var e=g.get(this);return e.data&&0<e.data.length},getFlatData:function(){return this._getFlatData()},getItem:function(e){return this._getItem(e)},getParentItem:function(e){return this._getParentItem(e)},selectItem:function(e,t){this._selectItem(e,t)},getSelectedItems:function(){return this._getSelectedItems()},clearSelection:function(){this._clearSelection()},filter:function(e){this._filter(e)},addItem:function(e,t){return this._addItem(e,t)},collapseItem:function(e,t){return this._collapseItem(e,t)},removeItem:function(e){this._removeItem(e)},updateItemTitle:function(e,t){(e=this._getItem(e))&&(e.title=t,this._updateItemElement(e,s.TITLE))},updateItemColor:function(e,t){(e=this._getItem(e))&&(e.color=t,this._updateItemElement(e,s.COLOR))},updateItemLabel:function(e,t){(e=this._getItem(e))&&(e.count=parseInt(t,10),this._updateItemElement(e,s.LABEL))},toggleDragDrop:function(e){var t=g.get(this);e?(t.dragdrop.enabled||t.$container.on("mousedown",".mcmd-tree-item",t._onItemMouseDown),t.dragdrop.enabled=!0):(t.dragdrop.enabled&&t.$container.off("mousedown",".mcmd-tree-item",t._onItemMouseDown),t.dragdrop.enabled=!1)}},e}();window.MEDIACOMMANDER=window.MEDIACOMMANDER||{},window.MEDIACOMMANDER.PLUGINS=window.MEDIACOMMANDER.PLUGINS||{},window.MEDIACOMMANDER.PLUGINS.TREE=function(e,t){return new i(e,t)}}(jQuery); -
mediacommander/trunk/assets/vendor/angular-light/angular-light.js
r3083414 r3101075 1 !function(){"use strict";function e(){function D(e,t){0<=(t=e.indexOf(t))?e.splice(t,1):console.warn("trying to remove not exist item")}var n,r,u,b,M,j,w,T,c,F,I,V,i,x,H,_,K,R,z,N,W,U,S,e,t,a,o,l,P,s,f,p,G,Q,Z,$,C,A,J,X,y,E,h,Y,ee,d,m,te,k,ne,v,re,ie,oe,ae,le,g,B,ce,O,se,q=function(e,t){return q.bootstrap(e,t)},L=(q.version="0.14.0",q.filters={},q.text={},q.core={},q.utils={},q.option={globalController:!1,removeAttribute:!0,domOptimization:!0,domOptimizationRemoveEmpty:!0,fastBinding:!0},q.debug={scan:0,directive:!1,watch:!1,watchText:!1,parser:!1},q.ctrl=q.controllers={},q.d=q.directives={al:{},bo:{},$global:{}},q.hooks={directive:[],binding:[]},q.priority={al:{app:2e3,checked:20,class:30,css:30,focused:20,if:700,ifnot:700,model:25,radio:25,repeat:1e3,select:20,stop:-10,value:20,on:10},$component:5,$attribute:-5},q.f$={});function ue(t,e){var n,r,i,o,a=[],l=!1,c=e.cd,s=e.callback;return e.filterConf.args.length?(r=[],e.filterConf.args.forEach(function(e,t){e=c.watch(e,function(e){a[t+1]=e,o()});e.$.isStatic||r.push(e)}),i=!1,o=function(){i||(i=!0,c.watch("$onScanOnce",function(){var e;i=!1,l&&(e=t.apply(null,a),L.isPromise(e)?e.then(function(e){s(e),c.scan()}):s(e))}))},r.length&&(n=function(){r.forEach(function(e){return e.stop()})})):o=function(){var e=t(a[0]);L.isPromise(e)?e.then(function(e){s(e),c.scan()}):s(e)},{onChange:function(e){l=!0,a[0]=e,o()},onStop:n,watchMode:e.watchMode}}function fe(e,t,n,r,i,o){r.callback.apply(null,o);r=t._properties.root;r&&r.topCD&&r.topCD.scan({zone:!0})}function pe(e,t,n,r){r.setValue(r.attrArgument,t)}function he(e){return e.replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()})}function de(e){var t,n=e.listener,r=e.childCD,i=e.name,o=e.parentName,e=e.parentCD,a={},i=he(i);if(n&&!0!==n)if(se.isFunction(n))t=n;else{if(t=n.onChange,"copy"===n||"copy"===n.watchMode)return void(t?t(o):r.scope[i]=o);"array"!==n&&"array"!==n.watchMode||(a.isArray=!0),"deep"!==n&&"deep"!==n.watchMode||(a.deep=!0)}e.watch(o,t=t||function(e){r.scope[i]=e,r.scan()},a)}return L.before=function(e,t){e.parentNode.insertBefore(t,e)},L.after=function(e,t){var n=e.parentNode,e=e.nextSibling;e?n.insertBefore(t,e):n.appendChild(t)},L.remove=function(e){var t=e.parentNode;t&&t.removeChild(e)},L.on=function(e,t,n){e.addEventListener(t,n,!1)},L.off=function(e,t,n){e.removeEventListener(t,n,!1)},L.isFunction=function(e){return e&&"[object Function]"===Object.prototype.toString.call(e)},L.isObject=function(e){return e&&"[object Object]"===Object.prototype.toString.call(e)},L.isPromise=function(e){return e&&window.Promise&&e instanceof window.Promise},L.isElement=function(e){return e instanceof HTMLElement},L.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},L.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi")," ")},L.rawAjax=function(e){var t,n=new XMLHttpRequest;for(t in n.open(e.type||"GET",e.url,!0,e.username,e.password),e.headers)n.setRequestHeader(t,e.headers[t]);e.success&&(n.onload=function(){200<=n.status&&n.status<400?e.success(n.responseText):e.error&&e.error()}),e.error&&(n.onerror=e.error),n.send(e.data||null)},L.ajaxCache={},L.ajax=function(e){if(e.username||e.password||e.headers||e.data||!e.cache)return L.rawAjax(e);var t=e.type||"GET",n=t+":"+e.url,r=L.ajaxCache[n];r||(L.ajaxCache[n]=r={callback:[]}),r.result?e.success&&e.success(r.result):(r.callback.push(e),r.loading||(r.loading=!0,L.rawAjax({type:t,url:e.url,success:function(e){r.loading=!1,r.result=e;for(var t=0;t<r.callback.length;t++)r.callback[t].success&&r.callback[t].success(e);r.callback.length=0},error:function(){r.loading=!1;for(var e=0;e<r.callback.length;e++)r.callback[e].error&&r.callback[e].error();r.callback.length=0}})))},e='@charset "UTF-8";[al-cloak],[hidden],.al-hide{display:none !important;}',t=document.querySelectorAll("head")[0],(g=document.createElement("style")).setAttribute("type","text/css"),g.styleSheet?g.styleSheet.cssText=e:g.appendChild(document.createTextNode(e)),t.appendChild(g),L.ready=(r=!(n=[]),L.on(document,"DOMContentLoaded",function e(){r=!0,L.off(document,"DOMContentLoaded",e);for(var t=0;t<n.length;t++)n[t]();n.length=0}),function(e){r?e():n.push(e)}),window.jQuery&&(window.jQuery.fn.alight=function(e){var n=[];if(this.each(function(e,t){return n.push(t)}),n.length)return q(n,e)}),q.core.getFilter=function(e,t){t=t.locals[e];if(t&&(L.isFunction(t)||t.init||t.fn))return t;if(t=q.filters[e])return t;throw"Filter not found: "+e},q.core.buildFilterNode=function(e,t,n,r){if(L.isFunction(n))return ue(n,{cd:e,filterConf:t,callback:r});if(n.init)return n.init.call(e,e.scope,t.raw,{setValue:r,conf:t,changeDetector:e});if(L.isFunction(n.fn))return ue(n.fn,{cd:e,filterConf:t,callback:r,watchMode:n.watchMode});throw"Wrong filter: "+t.name},q.ChangeDetector=function(e){var t=new M,e=new u(t,e||{});return t.topCD=e},(M=function(){return this.watchers={any:[],finishBinding:[],finishScan:[],finishScanOnce:[],onScanOnce:[]},this.status=null,this.extraLoop=!1,this.finishBinding_lock=!1,this.lateScan=!1,this.topCD=null,this}).prototype.destroy=function(){if(this.watchers.any.length=0,this.watchers.finishBinding.length=0,this.watchers.finishScan.length=0,this.watchers.finishScanOnce.length=0,this.watchers.onScanOnce.length=0,this.topCD)return this.topCD.destroy()},(u=function(e,t){this.scope=t,this.locals=t,this.root=e,this.watchList=[],this.destroy_callbacks=[],this.parent=null,this.children=[],this.rwatchers={any:[],finishScan:[],elEvents:[]}}).prototype.new=function(e,t){var n,r;return t=t||{},r=this,null==e&&(e=r.scope),(n=new u(r.root,e)).parent=r,e===r.scope&&(t.locals?((t=r._ChildLocals)||(r._ChildLocals=t=function(){return this.$$root=e,this},t.prototype=r.locals),n.locals=new t):n.locals=r.locals),r.children.push(n),n},u.prototype.destroy=function(){var e,t,n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x=this,k=x.root;for(x.scope=null,x.parent&&D(x.parent.children,x),n=0,o=(d=x.destroy_callbacks).length;n<o;n++)(0,d[n])();for(r=0,a=(m=x.children.slice()).length;r<a;r++)m[r].destroy();for(i=x.destroy_callbacks.length=0,l=(v=x.watchList).length;i<l;i++)(e=v[i]).onStop&&e.onStop();for(f=x.watchList.length=0,c=(g=x.rwatchers.any).length;f<c;f++)w=g[f],D(k.watchers.any,w);for(p=x.rwatchers.any.length=0,s=(y=x.rwatchers.finishScan).length;p<s;p++)w=y[p],D(k.watchers.finishScan,w);for(h=x.rwatchers.finishScan.length=0,u=(b=this.rwatchers.elEvents).length;h<u;h++)t=b[h],L.off(t[0],t[1],t[2]);this.rwatchers.elEvents.length=0,k.topCD===x&&(k.topCD=null,k.destroy())},j=function(e){return this.cb=e},i=function(e,t,n){var r=e.root,i=new j(n);return e.rwatchers[t].push(i),r.watchers[t].push(i),{stop:function(){return D(e.rwatchers[t],i),D(r.watchers[t],i)}}},u.prototype.on=function(e,t,n){return L.on(e,t,n),this.rwatchers.elEvents.push([e,t,n])},F={$any:function(e,t){return i(e,"any",t)},$finishScan:function(e,t){return i(e,"finishScan",t)},$finishScanOnce:function(e,t){e.root.watchers.finishScanOnce.push(t)},$onScanOnce:function(e,t){e.root.watchers.onScanOnce.push(t)},$destroy:function(e,t){e.destroy_callbacks.push(t)},$finishBinding:function(e,t){e.root.watchers.finishBinding.push(t)}},x=function(){},u.prototype.watch=function(t,n,e){var r,i,o,a,l,c,s=F[t];if(s)return s(this,n);if((e=!0===(e=e||{})?{isArray:!0}:e).init&&console.warn("watch.init is depricated"),(r=this).root,c=r.scope,L.isFunction(t)?(o=t,a=q.utils.getId(),p=!0):(p=!1,o=null,"::"===(t=t.trim()).slice(0,2)&&(t=t.slice(2),e.oneTime=!0),a=t,a=e.deep?"d#"+a:e.isArray?"a#"+a:"v#"+a),q.debug.watch&&console.log("$watch",t),s=!1,!p)if(e.watchText)o=e.watchText.fn;else{if((a=q.utils.compile.expression(t)).filter){for(var u,f=r,p=a,h=n,d=e,m=null,v=d.oneTime,g=(d.isArray?m="array":d.deep&&(m="deep"),h||(u={el:d.element,ea:d.elementAttr},h=function(e){T(f.scope,u,e)}),q.utils.parsFilter(p.filter)),y=[],b=g.result.length-1;0<=b;b--){var w=q.core.getFilter(g.result[b].name,f),w=q.core.buildFilterNode(f,g.result[b],w,h);w.watchMode&&(m=w.watchMode),w.onStop&&y.push(w.onStop),h=w.onChange}return d={oneTime:v},"array"===m?d.isArray=!0:"deep"===m&&(d.deep=!0),y.length&&(d.onStop=function(){y.forEach(function(e){return e()}),y.length=0}),f.watch(p.expression,h,d)}s=a.isSimple&&0===a.simpleVariables.length,o=a.fn}return e.deep&&(e.isArray=!1),i={isStatic:s,isArray:Boolean(e.isArray),extraLoop:!e.readOnly,deep:!0===e.deep?10:e.deep,value:x,callback:n,exp:o,src:""+t,onStop:e.onStop||null,el:e.element||null,ea:e.elementAttr||null},s?r.watch("$onScanOnce",function(){return T(c,i,i.exp(c))}):r.watchList.push(i),l={$:i,stop:function(){if(e.onStop)try{e.onStop()}catch(e){q.exceptionHandler(e,"Error in onStop of watcher: "+t,t)}if(!i.isStatic)return D(r.watchList,i)},refresh:function(){var e=i.exp(r.locals);return e&&i.deep?i.value=q.utils.clone(e,i.deep):e&&i.isArray?i.value=e.slice():i.value=e}},e.oneTime&&(i.callback=function(e){if(void 0!==e)return l.stop(),n(e)}),l},u.prototype.watchGroup=function(e,t){var n,r,i,o,a,l=this;if(!t&&L.isFunction(e)&&(t=e,e=null),a=!1,n=function(){if(!a)return a=!0,l.watch("$onScanOnce",function(){return a=!1,t()})},e)for(r=0,o=e.length;r<o;r++)i=e[r],l.watch(i,n);return n},c=window.performance?function(){return Math.floor(performance.now())}:function(){return(new Date).getTime()},I=function(e,t){var n,r,i,o;if(null===e||null===t)return!0;if((o=typeof e)!=typeof t)return!0;if("object"==o){if(e.length!==t.length)return!0;for(n=r=0,i=e.length;r<i;n=++r)if(e[n]!==t[n])return!0}return!1},T=function(e,t,n){t.el?t.ea?t.el.setAttribute(t.ea,n):t.el.nodeValue=n:t.callback.call(e,n)},w=function(e,t,n,r){t={src:n.src,scope:t.scope,locals:t.locals};return n.el&&(t.element=n.el),q.exceptionHandler(e,(1===r?"$scan, error in callback: ":"$scan, error in expression: ")+n.src,t)},b=function(){},V=function(e,t){e.root;var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v=!1,g=0,y=0;if(e){for(p=[],a=0,i=e;i;){for(u=i.locals,y+=i.watchList.length,l=0,s=(h=i.watchList.slice()).length;l<s;l++){c=(m=h[l]).value;try{d=m.exp(u)}catch(e){o=e,d=b}if(c!==d){if(f=!1,m.isArray?(n=Array.isArray(c))===(r=Array.isArray(d))?n?I(c,d)&&(f=!0,m.value=d.slice()):(f=!0,m.value=d):(f=!0,m.value=r?d.slice():d):m.deep?q.utils.equal(c,d,m.deep)||(f=!0,m.value=q.utils.clone(d,m.deep)):(f=!0,m.value=d),f)if(f=!1,d===b)w(o,i,m);else{g++;try{m.el?m.ea?null!=d?m.el.setAttribute(m.ea,d):m.el.removeAttribute(m.ea):m.el.nodeValue=d:(c===x&&(c=void 0),"$scanNoChanges"!==m.callback.call(i.scope,d,c)&&m.extraLoop&&(v=!0))}catch(e){w(o=e,i,m,1)}}1<q.debug.scan&&console.log("changed:",m.src)}}p.push.apply(p,i.children),i=p[a++]}t.total=y,t.changes=g,t.extraLoop=v}},u.prototype.digest=function(){var e,t,n,r,i,o=this.root,a=10,l=0;for(q.debug.scan&&(i=c()),r={total:0,changes:0,extraLoop:!1,src:"",scope:null,element:null};a;){if(a--,o.extraLoop=!1,o.watchers.onScanOnce.length)for(n=o.watchers.onScanOnce.slice(),e=o.watchers.onScanOnce.length=0,t=n.length;e<t;e++)n[e].call(o);if(V(this,r),l+=r.changes,!r.extraLoop&&!o.extraLoop&&!o.watchers.onScanOnce.length)break}return q.debug.scan&&(i=c()-i,console.log("$scan: loops: ("+(10-a)+"), last-loop changes: "+r.changes+", watches: "+r.total+" / "+i+"ms")),r.mainLoop=a,r.totalChanges=l,r},u.prototype.scan=function(e){var t,n,r,i,o,a,l,c,s,u=this.root;if(e=e||{},!q.option.zone||e.zone){if((e=L.isFunction(e)?{callback:e}:e).callback&&u.watchers.finishScanOnce.push(e.callback),e.late)return u.lateScan?void 0:(u.lateScan=!0,void q.nextTick(function(){if(u.lateScan)return u.topCD.scan()}));if("scaning"!==u.status){if(u.lateScan=!1,u.status="scaning",(e=u.topCD?u.topCD.digest():{}).totalChanges)for(n=0,o=(c=u.watchers.any).length;n<o;n++)(0,c[n])();for(u.status=null,r=0,a=(s=u.watchers.finishScan).length;r<a;r++)(0,s[r])();for(t=u.watchers.finishScanOnce.slice(),i=u.watchers.finishScanOnce.length=0,l=t.length;i<l;i++)t[i].call(u);if(0===e.mainLoop)throw"Infinity loop detected";return e}u.extraLoop=!0}},(q.core.ChangeDetector=u).prototype.compile=function(e,t){return q.utils.compile.expression(e,t).fn},u.prototype.setValue=function(t,n){var r,i,o,a,l,c,s,u,f=this.compile(t+" = $value",{input:["$value"],no_return:!0});try{return f(this.locals,n)}catch(e){if(r=e,c="can't set variable: "+t,q.debug.parser&&console.warn(c),0<=(""+r).indexOf("TypeError")&&(u=t.match(/^([\w\d\.]+)\.[\w\d]+$/))&&u[1]){for(l=this.locals,i=0,a=(s=u[1].split(".")).length;i<a;i++)void 0===l[o=s[i]]&&(l[o]={}),l=l[o];try{return void f(this.locals,n)}catch(e){}}return q.exceptionHandler(r,c,{name:t,value:n})}},u.prototype.eval=function(e){return this.compile(e)(this.locals)},u.prototype.getValue=function(e){return this.eval(e)},q.text.$base=function(t){var n=t.point,e=t.cd,r=e.scope,i=(r.$ns&&r.$ns.text?r.$ns:q).text[t.name];if(i)return i.call(e,(i={changeDetector:e,setter:function(e){if(t.update)return n.value=null===e?"":""+e,t.update()},setterRaw:function(e){if(t.updateRaw)return n.value=null===e?"":""+e,t.updateRaw()},finally:function(e){if(t.finally)return n.value=null===e?"":""+e,n.type="text",t.finally(),t.update=null,t.finally=null}}).setter,t.exp,r,i);throw"No directive alight.text."+t.name},u.prototype.watchText=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A,E,B;if(n=n||{},i=this,q.debug.watchText&&console.log("$watchText",e),D=q.utils.compile.buildSimpleText(e,null))i.watch(e,t,{watchText:D,element:n.element,elementAttr:n.elementAttr});else{for(a=q.utils.parsText(e),x=!(r=!(E=0)),c=s=l=function(){},d=0,g=a.length;d<g;d++)if("expression"===(o=a[d]).type)if(w=(u=o.list.join("|")).match(/^([^\w\d\s\$"'\(\u0410-\u044F\u0401\u0451]+)/))o.isDir=!0,w=w[1],u="#"===w?(h=u.indexOf(" "))<0?(w=u.substring(1),""):(w=u.slice(1,h),u.slice(h)):u.substring(w.length),q.text.$base({name:w,exp:u,cd:i,point:o,update:function(){return c()},updateRaw:function(){return s()},finally:function(){return c(),l()}}),x=!0,"text"!==o.type&&(r=!1);else if((w=q.utils.compile.expression(u,{string:!0})).filter)E++,o.watched=!(r=!1),!function(t){i.watch(u,function(e){return t.value=e=null==e?"":e,c()})}(o);else{if(o.fn=w.fn,!w.rawExpression)throw"Error";w.isSimple&&0===w.simpleVariables.length?(o.type="text",o.value=o.fn()):(o.re=w.rawExpression,E++)}if(r)if(E)D=x?q.utils.compile.buildSimpleText(null,a):q.utils.compile.buildSimpleText(e,a),i.watch(e,t,{watchText:{fn:D.fn},element:n.element,elementAttr:n.elementAttr});else{for(C="",m=0,y=a.length;m<y;m++)o=a[m],C+=o.value;i.watch("$onScanOnce",function(){return T(i.scope,{callback:t,el:n.element,ea:n.elementAttr},C)})}else if(B={callback:t,el:n.element,ea:n.elementAttr},a.scope=i.scope,p=q.utils.compile.buildText(e,a),s=function(){return T(i.scope,B,p())},E){for(A=null,k="",c=function(){k=p()},l=function(){var e,t;for(h=!0,e=0,t=a.length;e<t;e++)if("expression"===(o=a[e]).type){h=!1;break}h&&(i.watch("$finishScanOnce",function(){return A.stop()}),n.onStatic)&&n.onStatic()},D=function(){return k},v=0,b=a.length;v<b;v++)"expression"!==(o=a[v]).type||o.isDir||o.watched||(o.watched=!0,function(t,e){i.watch(e,function(e){return t.value=e=null==e?"":e,c()})}(o,o.list.join(" | ")));c(),A=i.watch(D,t,{element:n.element,elementAttr:n.elementAttr})}else $=!1,f=function(){return $=!1,s()},(c=function(){if(!$)return $=!0,i.watch("$onScanOnce",f)})()}},H={TR:1,TD:1,LI:1},q.utils.optmizeElement=function(e,t){var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w;if(1===e.nodeType){for(t=t||!q.option.domOptimizationRemoveEmpty,"PRE"===e.nodeName&&(t=!0),!(o=e.firstChild)||3!==o.nodeType||o.nodeValue.trim()||t||(L.remove(o),o=e.firstChild),v=!1;o;)d=o.nextSibling,!v||3!==o.nodeType||o.nodeValue.trim()||t?(v=1===o.nodeType&&H[o.nodeName],q.utils.optmizeElement(o,t)):L.remove(o),o=d;!(o=e.lastChild)||3!==o.nodeType||o.nodeValue.trim()||t||L.remove(o)}else if(3===e.nodeType&&(b=e.data,p=q.utils.pars_start_tag,!((l=b.indexOf(p))<0||b.slice(l+p.length).indexOf(p)<0))){for(m="t",y=[n={value:""}],c=0,u=(i=q.utils.parsText(b)).length;c<u;c++)"text"===(r=i[c]).type?n.value+=r.value:(a=r.list.join("|"),w=q.utils.pars_start_tag+a+q.utils.pars_finish_tag,a.match(/^([^\w\d\s\$"'\(\u0410-\u044F\u0401\u0451]+)/)?("t"===m||"d"===m?n.value+=w:y.push(n={value:w}),m="d"):1===r.list.length?("t"===m||"v"===m?n.value+=w:y.push(n={value:w}),m="v"):"t"===m?n.value+=w:y.push(n={value:w}));if(!(y.length<2))for((o=e).data=y[0].value,s=0,f=(g=y.slice(1)).length;s<f;s++)r=g[s],h=document.createTextNode(r.value),L.after(o,h),o=h}},q.hooks.attribute=e=[],e.push({code:"dataPrefix",fn:function(){"data-"===this.attrName.slice(0,5)&&(this.attrName=this.attrName.slice(5))}}),e.push({code:"colonNameSpace",fn:function(){var e,t;this.directive||this.name||((t=(e=(t=this.attrName.match(/^(\w+)[\-\:](.+)$/))?(this.ns=t[1],t[2]):(this.ns="$global",this.attrName)).match(/^([^\.]+)\.(.*)$/))&&(e=t[1],this.attrArgument=t[2]),this.name=e.replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}))}}),e.push({code:"getGlobalDirective",fn:function(){var e;this.directive||((e=q.d[this.ns])?(this.directive=e[this.name],this.directive||("$global"===this.ns?this.result="noNS":this.result="noDirective",this.stop=!0)):(this.result="noNS",this.stop=!0))}}),e.push({code:"cloneDirective",fn:function(){var e,t,n=this.directive,r=this.ns,i=this.name,o={};if(L.isFunction(n))o.init=n;else{if(!L.isObject(n))throw"Wrong directive: "+r+"."+i;for(e in n)t=n[e],o[e]=t}if(o.priority=n.priority||q.priority[r]&&q.priority[r][i]||0,o.restrict=n.restrict||"A",o.restrict.indexOf(this.attrType)<0)throw"Directive has wrong binding (attribute/element): "+i;this.directive=o}}),e.push({code:"preprocessor",fn:function(){var a=this.ns,l=this.name,c=this.directive;c.$init=function(e,t,n,r){var i=function(){for(var e,t=o.procLine,n=e=0,r=t.length;e<r;n=++e)if(t[n].fn.call(o),o.isDeferred){o.procLine=t.slice(n+1);break}return o.async=!0,null},o={element:t,value:n,cd:e,env:r,ns:a,name:l,doBinding:!1,directive:c,isDeferred:!1,procLine:q.hooks.directive,makeDeferred:function(){return o.isDeferred=!0,o.doBinding=!0,o.retStopBinding=!0,o.async=!1,function(){if(o.isDeferred=!1,o.async)return i()}}};if(c.stopBinding&&(r.stopBinding=!0),i(),o.retStopBinding)return"stopBinding"}}}),(t=q.hooks.directive).push({code:"init",fn:function(){var e;this.directive.init&&(q.debug.directive&&this.directive.scope&&console.warn(this.ns+"-"+this.name+" uses scope and init together, probably you need use link instead of init"),this.env.changeDetector=this.cd,e=this.directive.init.call(this.env,this.cd.scope,this.element,this.value,this.env))&&e.start&&e.start()}}),t.push({code:"templateUrl",fn:function(){var t,n=this;this.directive.templateUrl&&(t=this.makeDeferred(),L.ajax({cache:!0,url:this.directive.templateUrl,success:function(e){return n.directive.template=e,t()},error:t}))}}),t.push({code:"template",fn:function(){var e;this.directive.template&&(1===this.element.nodeType?this.element.innerHTML=this.directive.template:8===this.element.nodeType&&((e=document.createElement("p")).innerHTML=this.directive.template.trim(),e=e.firstChild,L.after(this.element,e),this.element=e,this.doBinding=!0))}}),t.push({code:"scope",fn:function(){var e,t;if(this.directive.scope){switch(t=this.cd,this.directive.scope){case!0:e=t.new({$parent:t.scope});break;case"root":e=q.ChangeDetector({$parent:t.scope}),t.watch("$destroy",function(){return e.destroy()});break;default:throw"Wrong scope value: "+this.directive.scope}this.env.parentChangeDetector=t,this.cd=e,this.doBinding=!0,this.retStopBinding=!0}}}),t.push({code:"link",fn:function(){var e;this.directive.link&&(this.env.changeDetector=this.cd,e=this.directive.link.call(this.env,this.cd.scope,this.element,this.value,this.env))&&e.start&&e.start()}}),t.push({code:"scopeBinding",fn:function(){this.doBinding&&!this.env.stopBinding&&q.bind(this.cd,this.element,{skip_attr:this.env.skippedAttr()})}}),a=function(e,t,n){var r;"A"===t.attr_type?((r=n||{}).priority=q.priority.$attribute,r.is_attr=!0,r.name=e,r.attrName=e,r.element=t.element,t.list.push(r)):"M"===t.attr_type&&t.list.push(n)},S=function(e,t){var n,r,i,o;if(0<=t.skip_attr.indexOf(e))return a(e,t,{skip:!0});for(n={attrName:e,attrType:t.attr_type,element:t.element,cd:t.cd,result:null},r=0,i=(o=q.hooks.attribute).length;r<i&&(o[r].fn.call(n),!n.stop);r++);if("noNS"!==n.result)return"noDirective"===n.result?"E"===t.attr_type?void t.list.push({name:e,priority:-10,attrName:e,noDirective:!0}):void a(e,t,{noDirective:!0}):void t.list.push({name:e,directive:n.directive,priority:n.directive.priority,attrName:e,attrArgument:n.attrArgument});a(e,t)},U=function(e,t){return e.priority===t.priority?0:e.priority>t.priority?-1:1},K=function(e,t,n,r){if(!(n.indexOf(q.utils.pars_start_tag)<0))return e.watchText(n,null,{element:t,elementAttr:r}),!0},W=function(e,t,n){var r=t.data;if(!(r.indexOf(q.utils.pars_start_tag)<0))return e.watchText(r,null,{element:t}),r},R=function(t,n,e){var r,i,o,a=n.nodeValue.trim();if("directive:"===a.slice(0,10)){if(o=0<=(o=(a=a.slice(10).trim()).indexOf(" "))?(i=a.slice(0,o-1+1||9e9),a.slice(o+1)):(i=a,""),r={list:a=[],element:n,attr_type:"M",cd:t,skip_attr:[]},S(i,r),(r=a[0]).noDirective)throw"Comment directive not found: "+i;i=r.directive,a=new _({element:n,attrName:r.attrName,attributes:a}),q.debug.directive&&console.log("bind",r.attrName,o,r);try{i.$init(t,n,o,a)}catch(e){q.exceptionHandler(e,"Error in directive: "+r.name,{value:o,env:a,cd:t,scope:t.scope,element:n})}return a.skipToElement?{directive:1,skipToElement:a.skipToElement}:{directive:1,skipToElement:null}}},(_=function(e){var t,n;for(t in e)n=e[t],this[t]=n;return this}).prototype.takeAttr=function(e,t){var n,r,i,o;for(1===arguments.length&&(t=!0),r=0,i=(o=this.attributes).length;r<i;r++)if((n=o[r]).attrName===e)return t&&(n.skip=!0),this.element.getAttribute(e)||!0},_.prototype.skippedAttr=function(){for(var e,t=this.attributes,n=[],r=0,i=t.length;r<i;r++)(e=t[r]).skip&&n.push(e.attrName);return n},_.prototype.scan=function(e){return this.changeDetector.scan(e)},_.prototype.on=function(e,t,n){return this.changeDetector.on(e,t,n)},_.prototype.watch=function(e,t,n){return this.changeDetector.watch(e,t,n)},_.prototype.watchGroup=function(e,t){return this.changeDetector.watchGroup(e,t)},_.prototype.watchText=function(e,t,n){return this.changeDetector.watchText(e,t,n)},_.prototype.getValue=function(e){return this.changeDetector.getValue(e)},_.prototype.setValue=function(e,t){return this.changeDetector.setValue(e,t)},_.prototype.eval=function(e){return this.changeDetector.eval(e)},_.prototype.new=function(e,t){return!0===t?t={locals:!0}:!0===e&&null==t&&(t={locals:!(e=null)}),this.changeDetector.new(e,t)},_.prototype.bind=function(e,t,n){var r,i,o,a,l,c,s;for(this.stopBinding=!0,l=o=0,c=arguments.length;l<c;l++)(r=arguments[l])instanceof u&&(i=r,o+=1),L.isElement(r)&&(a=r,o+=1);return s=(s=arguments[o])||{skip:this.skippedAttr()},a=a||this.element,i=i||this.changeDetector,q.bind(i,a,s)},z=function(t,i,e){var n,r,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A={attr:[],dir:[],children:[]},E={directive:0,hook:0,skipToElement:null,fb:A},B=(e=e||{}).skip_attr;if(!(D=!1)===e.skip?e.skip_top=!0:B=B||e.skip||[],B instanceof Array||(B=[B]),!e.skip_top){for(n={list:g=[],element:i,skip_attr:B,attr_type:"E",cd:t},o=i.nodeName.toLowerCase(),S(o,n),"script"!==o&&"style"!==o||(D=!0),n.attr_type="A",h=0,d=(x=i.attributes).length;h<d;h++)r=x[h],S(r.name,n);if(e.attachDirective)for(o in k=e.attachDirective)k[o],S(o,n);for(y=0,m=(g=g.sort(U)).length;y<m;y++)if(!(s=g[y]).skip){if(s.noDirective)throw"Directive not found: "+s.name;if(s.skip=!0,C=e.attachDirective&&e.attachDirective[s.attrName]?e.attachDirective[s.attrName]:i.getAttribute(s.attrName),s.is_attr)K(t,i,C,s.attrName)&&A.attr.push({attrName:s.attrName,value:C});else{f=s.directive,u=new _({element:i,attrName:s.attrName,attrArgument:s.attrArgument||null,attributes:g,stopBinding:!1,elementCanBeRemoved:e.elementCanBeRemoved,fbElement:e.fbElement}),q.debug.directive&&console.log("bind",s.attrName,C,s);try{"stopBinding"===f.$init(t,i,C,u)&&(D=!0)}catch(e){q.exceptionHandler(e,"Error in directive: "+s.attrName,{value:C,env:u,cd:t,scope:t.scope,element:i})}if(u.fastBinding?(f=L.isFunction(u.fastBinding)?u.fastBinding:f.init,A.dir.push({fb:f,attrName:s.attrName,value:C,attrArgument:u.attrArgument,fbData:u.fbData})):E.directive++,u.stopBinding){D=!0;break}u.skipToElement&&(E.skipToElement=u.skipToElement)}}}if(!D)for($=null,p=b=0,v=(l=function(){for(var e=i.childNodes,t=[],n=0,r=e.length;n<r;n++)a=e[n],t.push(a);return t}()).length;b<v;p=++b)(a=l[p])&&($?$===a&&($=null):(e.fbElement&&(c={fbElement:e.fbElement.childNodes[p]}),w=N(t,a,c),E.directive+=w.directive,E.hook+=w.hook,$=w.skipToElement,w.fb&&(w.fb.text||w.fb.attr&&w.fb.attr.length||w.fb.dir&&w.fb.dir.length||w.fb.children&&w.fb.children.length)&&A.children.push({index:p,fb:w.fb})));return E},N=function(e,t,n){var r,i,o,a,l,c,s={directive:0,hook:0,skipToElement:null,fb:null};if(q.hooks.binding.length)for(i=0,o=(l=q.hooks.binding).length;i<o;i++)if(r=l[i],s.hook+=1,(a=r.fn(e,t,n))&&a.owner)return s;return 1===t.nodeType?(a=z(e,t,n),s.directive+=a.directive,s.hook+=a.hook,s.skipToElement=a.skipToElement,s.fb=a.fb):3===t.nodeType?(c=W(e,t))&&(s.fb={text:c}):8===t.nodeType&&(a=R(e,t))&&(s.directive+=a.directive,s.skipToElement=a.skipToElement),s},q.nextTick=(o=null,l=[],P=function(){var t,e,n,r,i;for(o=null,e=l.slice(),n=l.length=0,r=e.length;n<r;n++){t=(i=e[n])[0],i=i[1];try{t.call(i)}catch(e){q.exceptionHandler(e,"$nextTick, error in function",{fn:t,self:i})}}return null},function(e){if(l.push([e,this]),!o)return o=setTimeout(P,0)}),q.bind=function(e,t,n){var r,i,o,a,l;if(!e)throw"No changeDetector";if(!t)throw"No element";if(n=n||{},q.option.domOptimization&&!n.noDomOptimization&&q.utils.optmizeElement(t),(r=!(l=e.root).finishBinding_lock)&&(l.finishBinding_lock=!0,l.bindingResult={directive:0,hook:0}),t=N(e,t,n),l.bindingResult.directive+=t.directive,l.bindingResult.hook+=t.hook,e.digest(),r){for(l.finishBinding_lock=!1,a=l.watchers.finishBinding.slice(),i=l.watchers.finishBinding.length=0,o=a.length;i<o;i++)(0,a[i])();t.total=l.bindingResult}return t},s=q.bind,q.bind=function(e,t,n){var r=e.root,i=q.option.zone;if(i){var i=!0===i?Zone:i,o=r.zone;if(o||(r.zone=o=i.current.fork({name:i.current.name+".x",properties:{root:r},onInvokeTask:fe})),i.current!==o)return r.zone.run(s,null,[e,t,n])}return s(e,t,n)},q.bootstrap=function(e,t){if(e){var n,r;if(e instanceof q.core.ChangeDetector?(r=e,e=t):t instanceof q.core.ChangeDetector?r=t:L.isFunction(t)?(r=q.ChangeDetector(n={}),t.call(r,n)):t&&(r=q.ChangeDetector(t)),Array.isArray(e)){for(var i=void 0,o=0,a=e;o<a.length;o++){var l=a[o];i=q.bootstrap(l,r)}return i}if("string"==typeof e){for(var i=void 0,c=0,s=document.querySelectorAll(e);c<s.length;c++){var u=s[c];i=q.bootstrap(u,r)}return i}if(r=r||q.ChangeDetector(),L.isElement(e)){for(var f,p,h,d=0,m=["al-app","al:app","data-al-app"];d<m.length&&(p=e.getAttribute(f=m[d]),e.removeAttribute(f),!p);d++);return p&&(h={skip_attr:[f],attachDirective:{}},q.d.al.ctrl?h.attachDirective["al-ctrl"]=p:h.attachDirective[p+"!"]=""),q.bind(r,e,h),r}q.exceptionHandler("Error in bootstrap","Error input arguments",{input:e})}else q.bootstrap("[al-app]"),q.bootstrap("[al\\:app]"),q.bootstrap("[data-al-app]")},q.utils.getId=(G=function(){for(var e,t,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=Math.floor((new Date).valueOf()/1e3)-1388512800,i="";0<r;)t=r-62*(e=Math.floor(r/62)),r=e,i=n[t]+i;return i}(),Q=1,function(){return G+"#"+Q++}),q.utils.clone=f=function(r,i){var o,e,t,n;if((i=null==i?128:i)<1)return null;if(!r)return r;if("object"!=typeof r)return r;if(r instanceof Array)return t=function(){for(var e=[],t=0,n=r.length;t<n;t++)o=r[t],e.push(f(o,i-1));return e}();if(r instanceof Date)return new Date(r.valueOf());if(r.nodeType&&"function"==typeof r.cloneNode)return r;for(e in t={},r)n=r[e],"$"!==e[0]&&(t[e]=f(n,i-1));return t},q.utils.equal=p=function(e,t,n){var r,i,o,a,l,c,s;if(!((n=null==n?128:n)<1)){if(!e||!t)return e===t;if((c=typeof e)!=typeof t)return!1;if("object"!=c)return e===t;if(e instanceof Array){if(e.length!==t.length)return!1;for(r=i=0,a=e.length;i<a;r=++i)if(s=e[r],!p(s,t[r],n-1))return!1}else{if(e instanceof Date)return e.valueOf()===t.valueOf();if(e.nodeType&&"function"==typeof e.cloneNode)return e===t;for(o in l={},e)if(s=e[o],"$"!==o[0]&&(l[o]=!0,!p(s,t[o],n-1)))return!1;for(o in t)if(s=t[o],"$"!==o[0]&&!l[o]&&!p(s,e[o],n-1))return!1}}return!0},q.exceptionHandler=function(e,t,n){var r=[];return t&&r.push(t),e&&e.message&&r.push(e.message),n&&r.push(n),e&&r.push(e.stack||e),console.error.apply(console,r)},E=(y=function(){for(var e={},t=0,n=arguments.length;t<n;t++)e[arguments[t]]=!0;return e})("instanceof","typeof","in","null","true","false","undefined","return"),J=/[a-zA-Z\u0410-\u044F\u0401\u0451_\.\$]/,$=function(e){return e.match(J)},C=function(e){return 48<=e.charCodeAt()&&e.charCodeAt()<=57},X=y("+","-",">","<","=","&","|","^","!","~"),A=function(e){return X[e]||!1},Z=y("=","+=","-=","++","--","|=","^=","&=","!=","<<=",">>="),q.utils.parsExpression=function(e,t){var h,d,s,k,m,u,v=y.apply(null,(t=t||{}).input||[]),D=1,t=(k=function(e){for(var t,n,r,i,o=e.line,a=e.result||[],l=e.index||0,c=e.level||0,s=e.stopKey||null,u="",f=null,p=[],h="",d="",m=!1,v="",g="",y="",b=0,w=null,x=function(){return y&&a.push({type:"free",value:y}),y=""};l<=o.length;)if(r=o[l-1],t=o[l++]||"",n=o[l],(m&&y||!t)&&x(),"string"===m)t===v&&"\\"!==r?(a.push({type:"string",value:g+=t}),m=v=g=""):g+=t;else{if("key"===m){if($(t)||C(t)){u+=t;continue}if("["===t){if(u+=t,!(i=k({line:o,index:l,level:c+1,stopKey:"]"})).stopKeyOk)throw"Error expression";l=i.index,u+="###"+i.uniq+"###]",p.push(i);continue}if("?"===t&&("."===n||"("===n||"["===n)){u+=t;continue}if("("===t){if(u+=t,!(i=k({line:o,index:l,level:c+1,stopKey:")"})).stopKeyOk)throw"Error expression";l=i.index,u+="###"+i.uniq+"###)",p.push(i);continue}f={type:"key",value:u,start:l-u.length-1,finish:l-1,children:p},a.push(f),u=m="",p=[]}else if("sign"===m){if(A(t)){h+=t;continue}if("|"===h&&0===c&&0===b){w=o.substring(l-1),l=o.length+1;continue}(Z[h]||"="===h[0]&&"="!==h[1])&&(f.assignment=!0),a.push({type:"sign",value:h}),h=m=""}else if("digit"===m){if(C(t)||"."===t){d+=t;continue}a.push({type:"digit",value:d}),d=""}if($(t))m="key",u+=t;else if(A(t))m="sign",h+=t;else if(C(t))m="digit",d+=t;else if('"'===t||"'"===t)m="string",g+=v=t;else{if(t===s)return x(),{result:a,index:l,stopKeyOk:!0,uniq:D++};"("===t&&b++,")"===t&&b--,"{"===t?(x(),i=k({line:o,index:l,level:c+1,stopKey:"}"}),a.push({type:"{}",child:i}),l=i.index):(":"===t&&"}"===s&&(f.type="free"),y+=t)}}return x(),{result:a,index:l,filter:w}})({line:e}),g={isSimple:!t.filter,simpleVariables:[]};return t.filter?(g.expression=e.substring(0,e.length-t.filter.length-1),g.filter=t.filter):g.expression=e,m=function(e){e=e.split(/[\.\[\(\?]/);return{count:e.length,firstPart:e[0]}},u=function(e,t){return t?"($$="+e+",$$==null)?undefined:":"($$=$$"+e+",$$==null)?undefined:"},s=function(e){return e.split(/[\.\[\(\?]/)[0]},d=function(e){var t,n,r,i,o,a,l,c;if("this"===e)return"$$scope";if(a=s(e),r=E[a]||v[a],"this"===a&&(e="$$scope"+e.slice(4),r=!0),1===(a=e.split("?")).length)return r?e:"$$scope."+e;for(t=r?(c=u(a[0],!0),a[0]):(c=u("scope."+a[0]),"scope."+a[0]),n=0,i=(l=a.slice(1,a.length-1)).length;n<i;n++)"("===(o=l[n])[0]?c+=u(t+o,r):(c+=u(o),t+=o);return"("===(e=a[a.length-1])[0]?(r||(c+="$$"),c+=t+e):c+="$$"+e,"("+c+")"},h=function(e){for(var t,n,r,i,o,a,l,c,s="",u=e.result,f=0,p=u.length;f<p;f++)if("key"===(n=u[f]).type){if(n.assignment?(a="this"===(c=m(n.value)).firstPart?"$$scope"+n.value.substring(4):v[c.firstPart]?n.value:c.count<2?"($$scope.$$root || $$scope)."+n.value:"$$scope."+n.value,g.isSimple=!1):E[n.value]?a=n.value:(a=d(n.value),g.simpleVariables.push(a)),n.children.length)for(r=0,o=(l=n.children).length;r<o;r++)i="###"+(t=l[r]).uniq+"###",t=h(t),a=a.split(i).join(t);s+=a}else"{}"===n.type?s+="{"+h(n.child)+"}":s+=n.value;return s},g.result=h(t),q.debug.parser&&console.log(e,g),g},q.utils.parsFilter=function(e){var t,n,r=[];for(e=e.trim();e;){if(!(t=e.match(/^(\w+)([^\w])(.*)$/))){if(!(t=e.match(/^(\w+)$/)))return null;r.push({name:t[1],args:[],raw:""});break}e="|"===t[2]?(r.push({name:t[1],args:[],raw:""}),t[3]):(n=q.utils.parsArguments(t[3],{stop:"|"}),r.push({name:t[1],args:n.result,raw:t[3].slice(0,n.length)}),t[3].slice(n.length+1).trim())}return{result:r}},q.utils.parsArguments=function(e,t){var n,r,i,o,a,l,c,s;for(t=t||{},r="",o=a=0,s=c=!(i=[]),l=function(){r&&(i.push(r),r="")};a<=e.length;)if(n=e[a]||"",a++,c)r+=n,'"'===n&&(c=!1);else if(s)r+=n,"'"===n&&(s=!1);else if('"'===n)r+=n,c=!0;else if("'"===n)r+=n,s=!0;else if(o)r+=n,"("===n&&o++,")"===n&&o--;else if(" "===n||","===n)l();else{if(t.stop&&t.stop===n){l();break}"("===n&&(o=1),r+=n}return l(),{result:i,length:a-1}},q.utils.pars_start_tag="{{",q.utils.pars_finish_tag="}}",ee=function(a){var r=q.utils.pars_start_tag,l=q.utils.pars_finish_tag,c=[],s=0,t=0,u=function(e){e=a.substring(t,s-(e=e||1));return t=s,e},f=null,p=function(e,t,n){var r,i,o;for(e||(f={type:"expression",list:[]},c.push(f)),r=null;s<a.length;){if(i=r+(r=a[s]),o=a[s+=1],r===t)return;if(!n){if(i===l&&0===e)return f.list.push(u(2)),!0;"("===r?p(e+1,")"):"{"===r?p(e+1,"}"):'"'===r?p(e+1,'"',!0):"'"===r?p(e+1,"'",!0):"|"===r&&0===e&&("|"===o?s+=1:f.list.push(u()))}}};return function(){for(var e,t,n=null;s<a.length;)if(t=n,n=a[s],s+=1,t+n===r){if((t=u(2))&&c.push({type:"text",value:t}),!p(0))throw"Wrong expression"+a;n=null}if(e=u(-1))return c.push({type:"text",value:e})}(),q.debug.parser&&console.log("parsText",c),c},h={},Y=function(e){for(var t,n,r=[],i=0,o=e.length;i<o;i++)t=e[i],n={type:t.type,value:t.value},t.list&&(n.list=t.list.slice()),r.push(n);return r},q.utils.parsText=function(e){var t=h[e];return t||(h[e]=t=ee(e)),Y(t)},q.utils.compile=d={},d.cache={},d.Function=Function,d.expression=function(t,n){var e,r,i,o,a,l;if(n=n||{},a=(t=t.trim())+"#",a=(a+=n.no_return?"+":"-")+(n.string?"s":"v"),n.input&&(a+=n.input.join(",")),o=d.cache[a])return o;r=(o=q.utils.parsExpression(t,{input:n.input})).result,n.no_return||!1?l="var $$;"+r:n.string&&!o.filter?(l="var $$, __ = ("+r+"); return '' + (__ || (__ == null?'':__))",o.rawExpression="(__="+r+") || (__ == null?'':__)"):l="var $$;return ("+r+")";try{i=n.input?((e=n.input.slice()).unshift("$$scope"),e.push(l),d.Function.apply(null,e)):d.Function("$$scope",l)}catch(e){throw q.exceptionHandler(e,"Wrong expression: "+t,{src:t,cfg:n}),"Wrong expression: "+r}return o.fn=i,d.cache[a]=o},d.cacheText={},d.buildText=function(e,t){var n,r,i,o,a,l=d.cacheText[e];if(!l){for(a=[],i=r=0,o=t.length;r<o;i=++r)"expression"===(n=t[i]).type?n.fn?a.push("this["+i+"].fn(this.scope)"):a.push("((x=this["+i+"].value) || (x == null?'':x))"):n.value&&(n=n.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n"),a.push('"'+n+'"'));a=a.join(" + "),l=d.Function("var x; return ("+a+")"),d.cacheText[e]=l}return function(){return l.call(t)}},d.cacheSimpleText={},d.buildSimpleText=function(e,t){var n,r,i,o,a,l,c=e?d.cacheSimpleText[e]:null;if(c||!t)return c||null;for(a=[],l=[],i=r=0,o=t.length;r<o;i=++r)"expression"===(n=t[i]).type?(a.push("("+n.re+")"),n.simpleVariables&&l.push.apply(l,n.simpleVariables)):n.value&&(n=n.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n"),a.push('"'+n+'"'));return a=a.join(" + "),c={fn:d.Function("$$scope","var $$, __; return ("+a+")"),simpleVariables:l},e&&(d.cacheSimpleText[e]=c),c},k=function(e){var t,n,r;if(!e.length)return"el";for(r="el",t=0,n=e.length;t<n;t++)r+=".childNodes["+e[t]+"]";return r},te=function(e){for(var t,n,r=q.utils.parsText(e),i=0,o=r.length;i<o;i++)if("expression"===(t=r[i]).type){if(1<t.list.length)return null;if("#"===(n=t.list[0])[0])return null;if("="===n[0])return null;if("::"===n.slice(0,2))return null;if(!(n=q.utils.compile.expression(n,{string:!0})).rawExpression)throw"Error";t.re=n.rawExpression}return q.utils.compile.buildSimpleText(e,r).fn},q.core.fastBinding=function(e){if(q.option.fastBinding&&!e.directive&&!e.hook&&e.fb)return new m(e)},(m=function(e){var y,b,w=this,x=[];return w.fastWatchFn=[],y=[],(b=function(e,t){var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g;if(e.dir)for(m=k(y),o=0,s=(p=e.dir).length;o<s;o++)n=p[o],x.push("s.dir("+w.fastWatchFn.length+", "+m+");"),w.fastWatchFn.push(n);if(e.attr)for(a=0,u=(h=e.attr).length;a<u;a++)g=(i=h[a]).value,l=i.attrName,m=k(y),r=te(g),v=g.replace(/"/g,'\\"').replace(/\n/g,"\\n"),r?(x.push('s.fw("'+v+'", '+w.fastWatchFn.length+", "+m+', "'+l+'");'),w.fastWatchFn.push(r)):x.push("s.wt('"+v+"', "+m+", '"+l+"');");if(e.text&&(m=k(y),r=te(e.text),v=e.text.replace(/"/g,'\\"').replace(/\n/g,"\\n"),r?(x.push('s.fw("'+v+'", '+w.fastWatchFn.length+", "+m+");"),w.fastWatchFn.push(r)):x.push('s.wt("'+v+'", '+m+");")),e.children)for(c=0,f=(d=e.children).length;c<f;c++)i=d[c],y.length=t+1,y[t]=i.index,b(i.fb,t+1)})(e.fb,0),x=x.join("\n"),w.resultFn=q.utils.compile.Function("s","el","f$",x),this}).prototype.bind=function(e,t){this.currentCD=e,this.resultFn(this,t,L)},m.prototype.dir=function(e,t){var e=this.fastWatchFn[e],n=this.currentCD,r=new _({attrName:e.attrName,attrArgument:e.attrArgument,changeDetector:n,fbData:e.fbData}),n=e.fb.call(r,n.scope,t,e.value,r);n&&n.start&&n.start()},m.prototype.fw=function(e,t,n,r){var i=this.currentCD,t=this.fastWatchFn[t],o=t(i.locals),t={isStatic:!1,isArray:!1,extraLoop:!1,deep:!1,value:o,callback:null,exp:t,src:e,onStop:null,el:n,ea:r||null};i.watchList.push(t),T(i.scope,t,o)},m.prototype.wt=function(e,t,n){this.currentCD.watchText(e,null,{element:t,elementAttr:n})},q.hooks.attribute.unshift({code:"events",fn:function(){var e=this.attrName.match(/^\@([\w\.\-]+)$/);e&&(this.ns="al",this.name="on",this.attrArgument=e[1])}}),q.hooks.eventModifier={},(g=function(e,n){return q.hooks.eventModifier[e]={event:["keydown","keypress","keyup"],fn:function(e,t){e[n]||(t.stop=!0)}}})("alt","altKey"),g("control","ctrlKey"),g("ctrl","ctrlKey"),g("meta","metaKey"),g("shift","shiftKey"),q.hooks.eventModifier.self=function(e,t){if(e.target!==t.element)return t.stop=!0},q.hooks.eventModifier.once={beforeExec:function(e,t){return t.unbind()}},re=function(e,t){var n,r,i,o,a,l={};if("string"==typeof e?l.event=e:"object"==typeof e&&e.event&&(l.event=e.event),"string"==typeof l.event&&(l.event=l.event.split(/\s+/)),t&&l.event){for(i=!1,r=0,o=(a=l.event).length;r<o;r++)if(n=a[r],0<=t.indexOf(n)){i=!0;break}if(!i)return null}return L.isFunction(e)?l.fn=e:e.fn&&(l.fn=e.fn),e.beforeExec&&(l.beforeExec=e.beforeExec),e.init&&(l.init=e.init),l},q.d.al.on=function(e,t,n,r){var u,i;r.attrArgument&&(q.option.removeAttribute&&(t.removeAttribute(r.attrName),r.fbElement)&&r.fbElement.removeAttribute(r.attrName),i=r.attrArgument.split(".")[0],(u=function(){}).prototype=le(r.attrArgument,ne[i]),n&&(u.prototype.fn=r.changeDetector.compile(n,{no_return:!0,input:["$event","$element","$value"]})),u.prototype.expression=n,r.fastBinding=function(e,r,t,n){var i,o,a,l,c,s=new u;for(s.scope=e,s.element=r,s.cd=n.changeDetector,i=function(e){return oe(s,e)},a=0,l=(c=s.eventList).length;a<l;a++)o=c[a],L.on(r,o,i);s.initFn&&s.initFn(e,r,t,n),s.unbind=function(){for(var e=s.eventList,t=0,n=e.length;t<n;t++)o=e[t],L.off(r,o,i)},n.changeDetector.watch("$destroy",s.unbind)},r.fastBinding(e,t,n,r))},ae={enter:13,tab:9,delete:46,backspace:8,esc:27,space:32,up:38,down:40,left:37,right:39},ne={click:{stop:!0,prevent:!0},dblclick:{stop:!0,prevent:!0},submit:{stop:!0,prevent:!0},keyup:{filterByKey:!0},keypress:{filterByKey:!0},keydown:{filterByKey:!0}},le=function(e,t){var n,r,i,o,a,l={attrArgument:e,throttle:null,throttleTime:0,debounce:null,debounceId:null,initFn:null,eventList:null,stop:(t=t||{}).stop||!1,prevent:t.prevent||!1,scan:!0,modifiers:[]},c=(e=e.split("."))[0],s=null;for((o=q.hooks.eventModifier[c])&&(o=re(o)).event&&(l.eventList=o.event,o.fn&&l.modifiers.push(o),o.init)&&(l.initFn=o.init),l.eventList||(l.eventList=[c]),n=0,i=(a=e.slice(1)).length;n<i;n++)"stop"===(r=a[n])?l.stop=!0:"prevent"===r?l.prevent=!0:"nostop"===r?l.stop=!1:"noprevent"===r?l.prevent=!1:"noscan"===r?l.scan=!1:"throttle-"===r.substring(0,9)?l.throttle=Number(r.substring(9)):"debounce-"===r.substring(0,9)?l.debounce=Number(r.substring(9)):(o=q.hooks.eventModifier[r])?(o=re(o,l.eventList))&&l.modifiers.push(o):t.filterByKey&&((s=null===s?{}:s)[r=ae[r]?ae[r]:r]=!0);return l.filterByKey=s,l},ie=function(e,t){e=e.element;return"checkbox"===e.type?e.checked:"radio"===e.type?e.value||e.checked:(t.component?t:e).value},v=function(t,n){for(var e,r=t.modifiers,i=0,o=r.length;i<o;i++)(e=r[i]).beforeExec&&e.beforeExec(n,t);if(t.fn)try{t.fn(t.cd.locals,n,t.element,ie(t,n))}catch(e){q.exceptionHandler(e,"Error in event: "+t.attrArgument+" = "+t.expression,{attr:t.attrArgument,exp:t.expression,scope:t.scope,cd:t.cd,element:t.element,event:n})}t.scan&&t.cd.scan()},oe=function(e,t){var n,r,i,o,a,l;if(!e.filterByKey||e.filterByKey[t.keyCode]){if(e.modifiers.length)for((n=function(){}).prototype=e,(r=new n).stop=!1,i=0,o=(l=e.modifiers).length;i<o;i++)if((a=l[i]).fn&&(a.fn(t,r),r.stop))return;e.prevent&&t.preventDefault(),e.stop&&t.stopPropagation(),e.debounce?(e.debounceId&&clearTimeout(e.debounceId),e.debounceId=setTimeout(function(){return e.debounceId=null,v(e,t)},e.debounce)):e.throttle?e.throttleTime<Date.now()&&(e.throttleTime=Date.now()+e.throttle,v(e,t)):v(e,t)}},q.hooks.attribute.unshift({code:"directDirective",fn:function(){var c,e=this.attrName.match(/^(.*)\!$/);e&&(e=e[1].replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}),c=this.cd.locals[e]||q.ctrl[e]||q.option.globalController&&window[e],L.isFunction(c)?this.directive=function(e,t,n,r){var i=r.changeDetector;if(n){for(var o=q.utils.parsArguments(n),a=Array(o.result.length),l=0;l<o.result.length;l++)a[l]=q.utils.compile.expression(o.result[l],{input:["$element","$env"]}).fn(i.locals,t,r);c.apply(i,a)}else c.call(i,e,t,n,r)}:(this.result="noDirective",this.stop=!0))}}),q.hooks.attribute.unshift({code:"elementVariable",fn:function(){var e=this.attrName.match(/^#([\w\.]*)$/);e&&(this.directive=pe,this.attrArgument=e[1])}}),q.d.al.value=function(e,t,n,r){var i,o;return r.fastBinding=!0,r.on(t,"input",i=function(){r.setValue(n,t.value),o.refresh(),r.scan()}),r.on(t,"change",i),o=r.watch(n,function(e){return t.value=e=null==e?"":e,"$scanNoChanges"})},q.d.al.checked=function(e,n,t,r){var i=r.fbData={opt:{},watch:[]};function o(e){var t=r.takeAttr(e);return q.option.removeAttribute&&(n.removeAttribute(e),r.fbElement)&&r.fbElement.removeAttribute(e),t}function a(e,t){var n=o(t);return n?(i.opt[e]=n,1):(n=o(":"+t)||o("al-attr."+t))?(i.watch.push([n,e]),1):void 0}function c(n,r,i){for(var e in r.fbData.opt)n[e]=r.fbData.opt[e];for(var t=0,o=r.fbData.watch;t<o.length;t++)!function(e){var t=e[1];r.watch(e[0],function(e){n[t]=e,i()})}(o[t])}a("value","value")?r.fastBinding=function(e,t,n,r){var i,o=null;function a(){return t.checked=o&&0<=o.indexOf(l.value),"$scanNoChanges"}var l={};c(l,r,a),i=r.watch(n,function(e){o=e,Array.isArray(o)||(o=null),a()},{isArray:!0}),r.on(t,"change",function(){var e;o||(o=[],r.setValue(n,o)),t.checked?o.indexOf(l.value)<0&&o.push(l.value):0<=(e=o.indexOf(l.value))&&o.splice(e,1),i.refresh(),r.scan()})}:(a("true","true-value"),a("false","false-value"),r.fastBinding=function(e,t,n,r){var i,o,a={true:!0,false:!1};function l(){return t.checked=i===a.true,"$scanNoChanges"}c(a,r,l),o=r.watch(n,function(e){i=e,l()}),r.on(t,"change",function(){i=t.checked?a.true:a.false,r.setValue(n,i),o.refresh(),r.scan()})}),r.fastBinding(e,n,t,r)},q.d.al.if=function(e,t,n,r){var i;return r.elementCanBeRemoved?(q.exceptionHandler(null,r.attrName+" can't control element because of "+r.elementCanBeRemoved,{scope:e,element:t,value:n,env:r}),{}):(r.stopBinding=!0,i={item:null,childCD:null,base_element:null,top_element:null,start:function(){i.prepare(),i.watchModel()},prepare:function(){i.base_element=t,i.top_element=document.createComment(" "+r.attrName+": "+n+" "),L.before(t,i.top_element),L.remove(t)},updateDom:function(e){e?i.insertBlock(e):i.removeBlock()},removeBlock:function(){i.childCD&&(i.childCD.destroy(),i.childCD=null,i.removeDom(i.item),i.item=null)},insertBlock:function(){i.childCD||(i.item=i.base_element.cloneNode(!0),i.insertDom(i.top_element,i.item),i.childCD=r.changeDetector.new(),q.bind(i.childCD,i.item,{skip_attr:r.skippedAttr(),elementCanBeRemoved:r.attrName}))},watchModel:function(){r.watch(n,i.updateDom)},removeDom:function(e){L.remove(e)},insertDom:function(e,t){L.after(e,t)}})},q.d.al.ifnot=function(e,t,n,r){var i=q.d.al.if(e,t,n,r);return i.updateDom=function(e){e?i.removeBlock():i.insertBlock()},i},q.directives.al.repeat={restrict:"AM",init:function(e,$,o,W){var l,U;return W.elementCanBeRemoved?(q.exceptionHandler(null,W.attrName+" can't control element because of "+W.elementCanBeRemoved,{scope:e,element:$,value:o,env:W}),{}):(W.stopBinding=!0,l=W.changeDetector,U={start:function(){U.parsExpression(),U.prepareDom(),U.buildUpdateDom(),U.watchModel()},parsExpression:function(){var e,t=o.trim();if("("===t[0]){if(U.objectMode=!0,e=t.match(/\((\w+),\s*(\w+)\)\s+in\s+(.+)\s+orderBy:(.+)\s*$/))U.objectKey=e[1],U.objectValue=e[2],U.expression=e[3]+(" | toArray:"+U.objectKey+","+U.objectValue+" | orderBy:"+e[4]);else{if(!(e=t.match(/\((\w+),\s*(\w+)\)\s+in\s+(.+)\s*$/)))throw"Wrong repeat: "+o;U.objectKey=e[1],U.objectValue=e[2],U.expression=e[3]+(" | toArray:"+U.objectKey+","+U.objectValue)}U.nameOfKey="$item",U.trackExpression="$item."+U.objectKey}else{if((e=t.match(/(.*) track by ([\w\.\$\(\)]+)/))&&(U.trackExpression=e[2],t=e[1]),!(e=t.match(/\s*(\w+)\s+in\s+(.+)/)))throw"Wrong repeat: "+o;U.nameOfKey=e[1],U.expression=e[2]}},watchModel:function(){var e=U.objectMode?{deep:!0}:{isArray:!0};U.watch=l.watch(U.expression,U.updateDom,e)},prepareDom:function(){var e,t,n,r,i;if(8===$.nodeType){for(U.top_element=$,U.element_list=t=[],e=$.nextSibling;e;){if(8===e.nodeType&&"/directive:"===(i=e.nodeValue.trim().split(/\s+/))[0]&&"al-repeat"===i[1]){W.skipToElement=e;break}t.push(e),e=e.nextSibling}for(n=0,r=t.length;n<r;n++)e=t[n],L.remove(e)}else U.base_element=$,U.top_element=document.createComment(" "+o+" "),L.before($,U.top_element),L.remove($),q.option.removeAttribute&&$.removeAttribute(W.attrName)},makeChild:function(e,t,n){var r=l.new(null,{locals:!0});return U.updateLocals(r,e,t,n),r},updateLocals:function(e,t,n,r){e=e.locals;U.objectMode?(e[U.objectKey]=t[U.objectKey],e[U.objectValue]=t[U.objectValue]):e[U.nameOfKey]=t,e.$index=n,e.$first=0===n,e.$last=n===r.length-1},rawUpdateDom:function(e,t){for(var n,r,i,o,a=0,l=e.length;a<l;a++)n=e[a],L.remove(n);for(i=0,o=t.length;i<o;i++)r=t[i],L.after(r.after,r.element)},buildUpdateDom:function(){return U.updateDom=(V=[],k=null,D=H=0,K=W.skippedAttr(),R="$index"===U.trackExpression?(i={},I=function(e){return i[H]||null},F=function(e){null!=e.$id&&delete i[e.$id]},function(e,t){t.$id=H,i[H]=t}):U.trackExpression?(i={},o=l.compile(U.trackExpression,{input:["$id",U.nameOfKey]}),n=function(e,t){return o(l.scope,e,t)},r=function(e){var t=e.$alite_id;return t=t||(e.$alite_id=q.utils.getId()),t},I=function(e){e=n(r,e);return null!=e?i[e]:null},F=function(e){e=e.$id;null!=e&&delete i[e]},function(e,t){e=n(r,e);t.$id=e,i[e]=t}):window.Map?(i=new Map,I=function(e){return i.get(e)},F=function(e){i.delete(e.item)},function(e,t){i.set(e,t)}):(i={},I=function(e){return"object"!=typeof e?i[e]||null:(e=e.$alite_id)?i[e]:null},F=function(e){var t=e.$id;i[t]&&(e.$id=null,delete i[t])},function(e,t){var n;"object"==typeof e?(n=q.utils.getId(),e.$alite_id=n,t.$id=n,i[n]=t):(t.$id=e,i[e]=t)}),a=[],z=function(e){var t,n=typeof e;if("object"==n)return e&&e.length?e:[];if("number"==n)t=Math.floor(e);else if("string"==n&&(t=Math.floor(e),isNaN(t)))return[];if(t<a.length)a.length=t;else for(;a.length<t;)a.push(a.length);return a},U.element_list?function(e){for(var i,o,a,t,l,n,r,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A,E,B,T,_,N=z(e),S=U.top_element,O=[],L=[],M=0,j=V.length;M<j;M++)(D=V[M]).active=!1;for(H=u=0,h=N.length;u<h;H=++u)c=N[H],(D=I(c))&&(D.active=!0);for(t=[],f=0,d=V.length;f<d;f++)if(!(D=V[f]).active){for(D.prev&&(D.prev.next=D.next),D.next&&(D.next.prev=D.prev),F(D),D.CD.destroy(),p=0,m=(B=D.element_list).length;p<m;p++)l=B[p],t.push(l);D.next=null,D.prev=null,D.element_list=null}for(E=null,A=!(i=[]),n=U.element_list.length-1,H=w=0,v=N.length;w<v;H=++w){if(c=N[H],D=I(s=c))if(U.updateLocals(D.CD,c,H,N),D.prev===E){if(A)for(x=0,g=(T=D.element_list).length;x<g;x++)l=T[x],O.push({element:l,after:S}),S=l;S=(E=D).element_list[n],D.active=!0}else{for((D.prev=E)&&(E.next=D),$=0,y=(_=D.element_list).length;$<y;$++)l=_[$],O.push({element:l,after:S}),S=l;(E=D).active=A=!0}else a=U.makeChild(s,H,N),s=function(){for(var e=U.element_list,t=[],n=0,r=e.length;n<r;n++)o=e[n],l=o.cloneNode(!0),i.push({cd:a,el:l}),O.push({element:l,after:S}),t.push(S=l);return t}(),R(c,D={CD:a,element_list:s,prev:E,next:null,active:!0,item:c}),E?(k=E.next,((E.next=D).next=k)&&(k.prev=D)):0===H&&V[0]&&(k=V[0],(D.next=k).prev=D),E=D;L.push(D)}for(V=L,U.rawUpdateDom(t,O),C=O.length=t.length=0,b=i.length;C<b;C++)r=i[C],q.bind(r.cd,r.el,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0})}:function(e){var t,n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w=z(e),x=U.top_element;for(D++,n=[],v=[],y=null,g=!(t=[]),H=o=0,f=w.length;o<f;H=++o)l=w[H],(m=I(c=l))?(U.updateLocals(m.CD,l,H,w),m.prev===y?(g&&n.push({element:m.element,after:y.element}),x=(y=m).element,m.version=D):((m.prev=y)&&(y.next=m),n.push({element:m.element,after:x}),g=!0,x=m.element,(y=m).version=D),v.push(m)):(c=U.makeChild(c,H,w),$=U.base_element.cloneNode(!0),null===k?(i=U.base_element.cloneNode(!0),b=q.bind(c,$,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0,fbElement:i}),(k=q.core.fastBinding(b)||!1)&&(U.base_element=i)):t.push({cd:c,el:$}),n.push({element:$,after:x}),R(l,m={CD:c,element:x=$,prev:y,next:null,version:D,item:l}),y?(d=y.next,((y.next=m).next=d)&&(d.prev=m)):0===H&&V[0]&&(d=V[0],(m.next=d).prev=m),y=m,v.push(m));for(r=[],s=0,p=V.length;s<p;s++)(m=V[s]).version!==D&&(m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),F(m),m.CD.destroy(),r.push(m.element),m.next=null,m.prev=null,m.element=null);for(V=v,U.rawUpdateDom(r,n),u=n.length=r.length=0,h=t.length;u<h;u++)a=t[u],k?k.bind(a.cd,a.el):q.bind(a.cd,a.el,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0})});var n,r,i,F,I,o,V,H,k,D,K,R,a,z}})}},q.d.al.init=function(t,n,r,i){var o,e,a,l;q.option.removeAttribute&&(n.removeAttribute(i.attrName),i.fbElement)&&i.fbElement.removeAttribute(i.attrName),o=i.changeDetector,l=["$element"],"window"===i.attrArgument&&l.push("window");try{a=o.compile(r,{no_return:!0,input:l}),i.fastBinding=e=function(e,t,n,r){return a(r.changeDetector.locals,t,window)},e(0,n,0,i)}catch(e){q.exceptionHandler(e,"al-init, error in expression: "+r,{exp:r,scope:t,cd:o,element:n}),i.fastBinding=function(){}}},q.d.al.app={stopBinding:!0},q.d.al.stop={restrict:"AE",stopBinding:!0},q.d.al.cloak=function(e,t,n,r){t.removeAttribute(r.attrName),n&&L.removeClass(t,n)},q.d.al.html={restrict:"AM",priority:100,modifier:{},link:function(i,o,a,l){var c;return l.elementCanBeRemoved&&8!==o.nodeType?(q.exceptionHandler(null,l.attrName+" can't control element because of "+l.elementCanBeRemoved,{scope:i,element:o,value:a,env:l}),{}):(l.stopBinding=!0,c={baseElement:null,topElement:null,activeElement:null,childCD:null,name:a,watchMode:null,start:function(){c.parsing(),c.prepare(),c.watchModel()},parsing:function(){var e,t,n,r;if(l.attrArgument)for(e=0,t=(r=l.attrArgument.split(".")).length;e<t;e++)"literal"===(n=r[e])?c.watchMode="literal":"tpl"===n?c.watchMode="tpl":q.d.al.html.modifier[n]&&q.d.al.html.modifier[n](c,{scope:i,element:o,inputName:a,env:l})},prepare:function(){8===o.nodeType?(c.baseElement=null,c.topElement=o):(c.baseElement=o,c.topElement=document.createComment(" "+l.attrName+": "+a+" "),L.before(o,c.topElement),L.remove(o))},removeBlock:function(){var e,t,n,r;if(c.childCD&&(c.childCD.destroy(),c.childCD=null),c.activeElement){if(Array.isArray(c.activeElement))for(t=0,n=(r=c.activeElement).length;t<n;t++)e=r[t],c.removeDom(e);else c.removeDom(c.activeElement);c.activeElement=null}},insertBlock:function(e){var t,n,r;if(c.baseElement)c.activeElement=c.baseElement.cloneNode(!1),c.activeElement.innerHTML=e,c.insertDom(c.topElement,c.activeElement),c.childCD=l.changeDetector.new(),q.bind(c.childCD,c.activeElement,{skip_attr:l.skippedAttr(),elementCanBeRemoved:l.attrName});else for((r=document.createElement("body")).innerHTML=e,t=c.topElement,c.activeElement=[],c.childCD=l.changeDetector.new();n=r.firstChild;)c.insertDom(t,n),c.activeElement.push(t=n),q.bind(c.childCD,t,{skip_attr:l.skippedAttr(),elementCanBeRemoved:l.attrName})},updateDom:function(e){c.removeBlock(),e&&c.insertBlock(e)},removeDom:function(e){L.remove(e)},insertDom:function(e,t){L.after(e,t)},watchModel:function(){"literal"===c.watchMode?c.updateDom(c.name):"tpl"===c.watchMode?l.watchText(c.name,c.updateDom):l.watch(c.name,c.updateDom)}})}},q.d.al.html.modifier.id=function(t){return t.updateDom=function(e){t.removeBlock(),(e=document.getElementById(e))&&(e=e.innerHTML)&&t.insertBlock(e)}},q.d.al.html.modifier.url=function(t){return t.loadHtml=function(e){L.ajax(e)},t.updateDom=function(e){e?t.loadHtml({cache:!0,url:e,success:function(e){t.removeBlock(),t.insertBlock(e)},error:t.removeBlock}):t.removeBlock()}},q.d.al.html.modifier.scope=function(r,i){var o,a,e=r.name.split(":");if(2===e.length)r.name=e[0],a=e[1];else{if(e=r.name.match(/(.+)\:\s*\:\:([\d\w]+)$/))o=!0;else if(o=!1,!(e=r.name.match(/(.+)\:\s*([\.\w]+)$/)))throw"Wrong expression "+r.name;r.name=e[1],a=e[2]}return r.insertBlock=function(e){var t,n;r.activeElement=r.baseElement.cloneNode(!1),r.activeElement.innerHTML=e,r.insertDom(r.topElement,r.activeElement),e=i.env.changeDetector,(t=r.childCD=e.new(null,{locals:!0})).locals.outer=null,n=e.watch(a,function(e){return t.locals.outer=e},{oneTime:o}),r.childCD.watch("$destroy",function(){return n.stop()}),q.bind(r.childCD,r.activeElement,{skip_attr:i.env.skippedAttr()})}},q.d.al.html.modifier.inline=function(e,t){var n=e.prepare;return e.prepare=function(){return n(),t.env.setValue(e.name,e.baseElement.innerHTML)}},q.d.al.radio=function(e,t,n,r){var i,o=r.takeAttr("al-value"),a=o?r.eval(o):r.takeAttr("value");return r.on(t,"change",function(){r.setValue(n,a),i.refresh(),r.scan()}),i=r.watch(n,function(e){return t.checked=a===e,"$scanNoChanges"})},window.Map?((B=function(){return this.idByItem=new Map,this.itemById={},this.index=1,this}).prototype.acquire=function(e){var t="i"+this.index++;return this.idByItem.set(e,t),this.itemById[t]=e,t},B.prototype.release=function(e){var t=this.itemById[e];delete this.itemById[e],this.idByItem.delete(t)},B.prototype.replace=function(e,t){var n=this.itemById[e];this.idByItem.delete(n),this.idByItem.set(t,e),this.itemById[e]=t},B.prototype.getId=function(e){return this.idByItem.get(e)},B.prototype.getItem=function(e){return this.itemById[e]||null}):((B=function(){return this.itemById={"i#null":null},this}).prototype.acquire=function(e){var t;return null===e?"i#null":("object"==typeof e?(t=e.$alite_id)||(e.$alite_id=t=q.utils.getId()):t=""+e,this.itemById[t]=e,t)},B.prototype.release=function(e){delete this.itemById[e]},B.prototype.replace=function(e,t){this.itemById[e]=t},B.prototype.getId=function(e){return null===e?"i#null":"object"==typeof e?e.$alite_id:""+e},B.prototype.getItem=function(e){return this.itemById[e]||null}),q.d.al.select=function(e,t,n,r){var i,o,a,l,c,s=r.changeDetector.new();return r.stopBinding=!0,s.$select={mapper:o=new B},i=null,s.$select.change=function(){return q.nextTick(function(){return l(i)})},l=function(e){e=o.getId(e);return e?t.value=e:t.selectedIndex=-1},c=s.watch(n,function(e){return l(i=e)}),r.on(t,"input",a=function(e){return i=o.getItem(e.target.value),s.setValue(n,i),c.refresh(),s.scan()}),r.on(t,"change",a),q.bind(s,t,{skip_attr:r.skippedAttr()})},q.d.al.option=function(e,t,n,r){var i,o,a,l,c,r=c=r.changeDetector;for(o=0;o<=4&&!(l=c.$select);++o)c=c.parent||{};l?(a=l.mapper,i=null,r.watch(n,function(e){i?a.getId(e)!==i?(a.release(i),i=a.acquire(e),t.value=i,l.change()):a.replace(i,e):(i=a.acquire(e),t.value=i,l.change())}),r.watch("$destroy",function(){return a.release(i),l.change()})):q.exceptionHandler("","Error in al-option - al-select is not found",{cd:r,scope:r.scope,element:t,value:n})},q.hooks.attribute.unshift({code:"attribute",fn:function(){var e=this.attrName.match(/^\:([\w\.\-]+)$/);e&&("html"===(e=e[1]).split(".")[0]?(this.name="html",e=e.substring(5)):this.name="attr",this.ns="al",this.attrArgument=e)}}),ce={checked:"checked",readonly:"readOnly",value:"value",selected:"selected",muted:"muted",disabled:"disabled",hidden:"hidden"},q.d.al.attr=function(e,t,i,n){var o,a,r,l,c,s,u,f,p;if(n.attrArgument){if(r=n.attrArgument.split("."),a=r[0],s=ce[a],l=0<r.indexOf("tpl"),q.option.removeAttribute&&(t.removeAttribute(n.attrName),n.fbElement)&&n.fbElement.removeAttribute(n.attrName),o={readOnly:!0},u=null,"style"===a){if(!r[1])throw"Style is not declared";f=r[1].replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}),u=function(e,t){return e.style[f]=t=null==t?"":t}}else"class"===a&&1<r.length?(l=!1,c=r.slice(1),u=function(e,t){var n,r,i,o,a;if(t)for(r=0,o=c.length;r<o;r++)n=c[r],L.addClass(e,n);else for(i=0,a=c.length;i<a;i++)n=c[i],L.removeClass(e,n)}):"focus"===a?u=function(e,t){return t?e.focus():e.blur()}:s?u=function(e,t){if(e[s]!==(t=void 0===t?null:t))return e[s]=t}:(o.element=t,o.elementAttr=a);p=l?"watchText":"watch",(r=u?function(e,t,n,r){return r.changeDetector[p](i,function(e){return u(t,e)},o)}:function(e,t,n,r){return r.changeDetector[p](i,null,{readOnly:!0,element:t,elementAttr:a})})(e,t,i,n),n.fastBinding=r}},q.d.al.model=function(e,t,n,r){var i=t.nodeName.toLowerCase();if("select"===i)return q.d.al.select.call(this,e,t,n,r);if("input"===i){if("checkbox"===t.type)return q.d.al.checked.call(this,e,t,n,r);if("radio"===t.type)return q.d.al.radio.call(this,e,t,n,r)}return q.d.al.value.call(this,e,t,n,r)},q.filters.slice=function(e,t,n){return e?n?e.slice(t,n):e.slice(t):null},O=function(e){return e<10?"0"+e:""+e},q.filters.date=function(e,t){var n,r,i,o,a;if(!e)return"";for(o=t,r=0,i=(a=[[/yyyy/g,(e=new Date(e)).getFullYear()],[/mm/g,O(e.getMonth()+1)],[/dd/g,O(e.getDate())],[/HH/g,O(e.getHours())],[/MM/g,O(e.getMinutes())],[/SS/g,O(e.getSeconds())]]).length;r<i;r++)o=o.replace((n=a[r])[0],n[1]);return o},q.filters.json={watchMode:"deep",fn:function(e){return JSON.stringify(q.utils.clone(e),null,4)}},q.filters.filter=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h;if(2===arguments.length)l=null,h=t;else{if(3!==arguments.length)return e;l=t,h=n}if(!e||null==h||""===h)return e;if(u=[],f=(""+h).toLowerCase(),l)for(i=0,c=e.length;i<c;i++)((r=e[i])[l]===h||0<=(""+r[l]).toLowerCase().indexOf(f))&&u.push(r);else for(o=0,s=e.length;o<s;o++)for(a in r=e[o])((p=r[a])===h||0<=(""+p).toLowerCase().indexOf(f))&&u.push(r);return u},q.filters.orderBy=function(e,n,r){return!e instanceof Array?null:(r=r?1:-1,e.sort(function(e,t){return e[n]<t[n]?-r:e[n]>t[n]?r:0}))},q.filters.throttle={init:function(e,t,n){var r;return t=Number(t),r=null,{onChange:function(e){return r&&clearTimeout(r),r=setTimeout(function(){return r=null,n.setValue(e),n.changeDetector.scan()},t)}}}},q.filters.toArray={init:function(e,t,i){var o,a=2===i.conf.args.length?(o=i.conf.args[0],i.conf.args[1]):(o="key","value"),l=[];return{watchMode:"deep",onChange:function(e){var t,n,r;for(n in l.length=0,e)r=e[n],(t={})[o]=n,t[a]=r,l.push(t);return i.setValue(l)}}}},q.filters.storeTo={init:function(e,t,n){return{onChange:function(e){return n.changeDetector.setValue(t,e),n.setValue(e)}}}},q.text["="]=function(e,t,n,r){t=q.utils.compile.expression(t);if(t.filters)throw"Conflict: bindonce and filters, use one-time binding";r.finally(t.fn(r.changeDetector.locals))},q.text["::"]=function(e,t,n,r){r.changeDetector.watch(t,function(e){return r.finally(e)},{oneTime:!0})},se=q.f$,q.component=function($,C){var e,t=$.match(/^(\w+)[\-](.+)$/),t=t?(e=t[1],t[2]):(e="$global",$);t=he(t),q.d[e]||(q.d[e]={}),q.d[e][t]={restrict:"E",stopBinding:!0,priority:q.priority.$component,init:function(e,n,t,r){var i={$sendEvent:function(e,t){e=new CustomEvent(e);e.value=t,e.component=!0,n.dispatchEvent(e)}},o=r.changeDetector.new(),a=q.ChangeDetector(i),l=new _({element:n,attributes:r.attributes,changeDetector:a,parentChangeDetector:o});try{var c=C.call(a,i,n,l)||{}}catch(e){return void q.exceptionHandler(e,"Error in component <"+$+">: ",{element:n,scope:i,cd:a})}c.onStart&&a.watch("$finishBinding",function(){c.onStart(),a.scan()});var s=!1;o.watch("$destroy",function(){s=!0,a.destroy()}),a.watch("$destroy",function(){c.onDestroy&&c.onDestroy(),s||o.destroy()});for(var u=0,f=n.attributes;u<f.length;u++){var p=f[u];if("#"===p.name[0]){var h=p.name.slice(1);if(h){c.api?o.setValue(h,c.api):o.setValue(h,i);break}}}function d(e,t){var n=l.takeAttr(":"+e);if(!n){if(!(n=l.takeAttr(e)))return;t="copy"}de({childCD:a,listener:t,name:e,parentName:n,parentCD:o})}if(c.props)if(Array.isArray(c.props))for(var m=0,v=c.props;m<v.length;m++)d(g=v[m],!0);else for(var g in c.props)d(g,c.props[g]);else for(var y=0,b=n.attributes;y<b.length;y++){var w=(p=b[y]).name,x=p.value;x&&(w=w.match(/^\:(.*)$/))&&de({childCD:a,name:w[1],parentName:x,parentCD:o})}var k=!1;if(o.watch("$onScanOnce",function(){return k=!0}),c.template&&(n.innerHTML=c.template),c.templateId){r=document.getElementById(c.templateId);if(!r)throw"No template "+c.templateId;n.innerHTML=r.innerHTML}function D(){k||o.digest(),q.bind(a,n,{skip:!0})}c.templateUrl?se.ajax({url:c.templateUrl,cache:!0,success:function(e){n.innerHTML=e,D()},error:function(){console.error("Template is not loaded",c.templateUrl)}}):D()}}},q}var t=e();t.makeInstance=e,"function"==typeof alightInitCallback?alightInitCallback(t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t:(t.option.globalController=!0,(window.alight=t).f$.ready(t.bootstrap))}(); 1 /* @license 2 Angular Light 0.14.0 3 https://github.com/lega911/angular-light 4 Released under the MIT License 5 */ 6 !function(){"use strict";function e(){function D(e,t){0<=(t=e.indexOf(t))?e.splice(t,1):console.warn("trying to remove not exist item")}function q(e,t){return q.bootstrap(e,t)}q.version="0.14.0",q.filters={},q.text={},q.core={},q.utils={},q.option={globalController:!1,removeAttribute:!0,domOptimization:!0,domOptimizationRemoveEmpty:!0,fastBinding:!0},q.debug={scan:0,directive:!1,watch:!1,watchText:!1,parser:!1},q.ctrl=q.controllers={},q.d=q.directives={al:{},bo:{},$global:{}},q.hooks={directive:[],binding:[]},q.priority={al:{app:2e3,checked:20,class:30,css:30,focused:20,if:700,ifnot:700,model:25,radio:25,repeat:1e3,select:20,stop:-10,value:20,on:10},$component:5,$attribute:-5};var n,r,u,b,M,j,w,T,c,F,I,V,i,x,H,_,K,R,z,N,W,U,S,e,t,a,o,l,P,s,f,p,G,Q,Z,$,C,A,J,X,y,E,h,Y,ee,d,m,te,k,ne,v,re,ie,oe,ae,le,g,B,ce,O,se,L=q.f$={};function ue(t,e){var n,r,i,o,a=[],l=!1,c=e.cd,s=e.callback;return e.filterConf.args.length?(r=[],e.filterConf.args.forEach(function(e,t){(e=c.watch(e,function(e){a[t+1]=e,o()})).$.isStatic||r.push(e)}),i=!1,o=function(){i||(i=!0,c.watch("$onScanOnce",function(){var e;i=!1,l&&(e=t.apply(null,a),L.isPromise(e)?e.then(function(e){s(e),c.scan()}):s(e))}))},r.length&&(n=function(){r.forEach(function(e){return e.stop()})})):o=function(){var e=t(a[0]);L.isPromise(e)?e.then(function(e){s(e),c.scan()}):s(e)},{onChange:function(e){l=!0,a[0]=e,o()},onStop:n,watchMode:e.watchMode}}function fe(e,t,n,r,i,o){r.callback.apply(null,o),(r=t._properties.root)&&r.topCD&&r.topCD.scan({zone:!0})}function pe(e,t,n,r){r.setValue(r.attrArgument,t)}function he(e){return e.replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()})}function de(e){var t,n=e.listener,r=e.childCD,i=e.name,o=e.parentName,e=e.parentCD,a={},i=he(i);if(n&&!0!==n)if(se.isFunction(n))t=n;else{if(t=n.onChange,"copy"===n||"copy"===n.watchMode)return t?t(o):r.scope[i]=o;"array"!==n&&"array"!==n.watchMode||(a.isArray=!0),"deep"!==n&&"deep"!==n.watchMode||(a.deep=!0)}e.watch(o,t=t||function(e){r.scope[i]=e,r.scan()},a)}return L.before=function(e,t){e.parentNode.insertBefore(t,e)},L.after=function(e,t){var n=e.parentNode;(e=e.nextSibling)?n.insertBefore(t,e):n.appendChild(t)},L.remove=function(e){var t=e.parentNode;t&&t.removeChild(e)},L.on=function(e,t,n){e.addEventListener(t,n,!1)},L.off=function(e,t,n){e.removeEventListener(t,n,!1)},L.isFunction=function(e){return e&&"[object Function]"===Object.prototype.toString.call(e)},L.isObject=function(e){return e&&"[object Object]"===Object.prototype.toString.call(e)},L.isPromise=function(e){return e&&window.Promise&&e instanceof window.Promise},L.isElement=function(e){return e instanceof HTMLElement},L.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},L.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi")," ")},L.rawAjax=function(e){var t,n=new XMLHttpRequest;for(t in n.open(e.type||"GET",e.url,!0,e.username,e.password),e.headers)n.setRequestHeader(t,e.headers[t]);e.success&&(n.onload=function(){200<=n.status&&n.status<400?e.success(n.responseText):e.error&&e.error()}),e.error&&(n.onerror=e.error),n.send(e.data||null)},L.ajaxCache={},L.ajax=function(e){if(e.username||e.password||e.headers||e.data||!e.cache)return L.rawAjax(e);var t=e.type||"GET",n=t+":"+e.url,r=L.ajaxCache[n];r||(L.ajaxCache[n]=r={callback:[]}),r.result?e.success&&e.success(r.result):(r.callback.push(e),r.loading||(r.loading=!0,L.rawAjax({type:t,url:e.url,success:function(e){r.loading=!1,r.result=e;for(var t=0;t<r.callback.length;t++)r.callback[t].success&&r.callback[t].success(e);r.callback.length=0},error:function(){r.loading=!1;for(var e=0;e<r.callback.length;e++)r.callback[e].error&&r.callback[e].error();r.callback.length=0}})))},e='@charset "UTF-8";[al-cloak],[hidden],.al-hide{display:none !important;}',t=document.querySelectorAll("head")[0],(g=document.createElement("style")).setAttribute("type","text/css"),g.styleSheet?g.styleSheet.cssText=e:g.appendChild(document.createTextNode(e)),t.appendChild(g),L.ready=(r=!(n=[]),L.on(document,"DOMContentLoaded",function e(){r=!0,L.off(document,"DOMContentLoaded",e);for(var t=0;t<n.length;t++)n[t]();n.length=0}),function(e){r?e():n.push(e)}),window.jQuery&&(window.jQuery.fn.alight=function(e){var n=[];if(this.each(function(e,t){return n.push(t)}),n.length)return q(n,e)}),q.core.getFilter=function(e,t){if((t=t.locals[e])&&(L.isFunction(t)||t.init||t.fn))return t;if(t=q.filters[e])return t;throw"Filter not found: "+e},q.core.buildFilterNode=function(e,t,n,r){if(L.isFunction(n))return ue(n,{cd:e,filterConf:t,callback:r});if(n.init)return n.init.call(e,e.scope,t.raw,{setValue:r,conf:t,changeDetector:e});if(L.isFunction(n.fn))return ue(n.fn,{cd:e,filterConf:t,callback:r,watchMode:n.watchMode});throw"Wrong filter: "+t.name},q.ChangeDetector=function(e){var t=new M,e=new u(t,e||{});return t.topCD=e},(M=function(){return this.watchers={any:[],finishBinding:[],finishScan:[],finishScanOnce:[],onScanOnce:[]},this.status=null,this.extraLoop=!1,this.finishBinding_lock=!1,this.lateScan=!1,this.topCD=null,this}).prototype.destroy=function(){if(this.watchers.any.length=0,this.watchers.finishBinding.length=0,this.watchers.finishScan.length=0,this.watchers.finishScanOnce.length=0,this.watchers.onScanOnce.length=0,this.topCD)return this.topCD.destroy()},(u=function(e,t){this.scope=t,this.locals=t,this.root=e,this.watchList=[],this.destroy_callbacks=[],this.parent=null,this.children=[],this.rwatchers={any:[],finishScan:[],elEvents:[]}}).prototype.new=function(e,t){var n,r;return t=t||{},r=this,null==e&&(e=r.scope),(n=new u(r.root,e)).parent=r,e===r.scope&&(t.locals?((t=r._ChildLocals)||(r._ChildLocals=t=function(){return this.$$root=e,this},t.prototype=r.locals),n.locals=new t):n.locals=r.locals),r.children.push(n),n},u.prototype.destroy=function(){var e,t,n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x=this,k=x.root;for(x.scope=null,x.parent&&D(x.parent.children,x),n=0,o=(d=x.destroy_callbacks).length;n<o;n++)(0,d[n])();for(r=0,a=(m=x.children.slice()).length;r<a;r++)m[r].destroy();for(i=x.destroy_callbacks.length=0,l=(v=x.watchList).length;i<l;i++)(e=v[i]).onStop&&e.onStop();for(f=x.watchList.length=0,c=(g=x.rwatchers.any).length;f<c;f++)w=g[f],D(k.watchers.any,w);for(p=x.rwatchers.any.length=0,s=(y=x.rwatchers.finishScan).length;p<s;p++)w=y[p],D(k.watchers.finishScan,w);for(h=x.rwatchers.finishScan.length=0,u=(b=this.rwatchers.elEvents).length;h<u;h++)t=b[h],L.off(t[0],t[1],t[2]);this.rwatchers.elEvents.length=0,k.topCD===x&&(k.topCD=null,k.destroy())},j=function(e){return this.cb=e},i=function(e,t,n){var r=e.root,i=new j(n);return e.rwatchers[t].push(i),r.watchers[t].push(i),{stop:function(){return D(e.rwatchers[t],i),D(r.watchers[t],i)}}},u.prototype.on=function(e,t,n){return L.on(e,t,n),this.rwatchers.elEvents.push([e,t,n])},F={$any:function(e,t){return i(e,"any",t)},$finishScan:function(e,t){return i(e,"finishScan",t)},$finishScanOnce:function(e,t){e.root.watchers.finishScanOnce.push(t)},$onScanOnce:function(e,t){e.root.watchers.onScanOnce.push(t)},$destroy:function(e,t){e.destroy_callbacks.push(t)},$finishBinding:function(e,t){e.root.watchers.finishBinding.push(t)}},x=function(){},u.prototype.watch=function(t,n,e){var r,i,o,a,l,c,s=F[t];if(s)return s(this,n);if((e=!0===(e=e||{})?{isArray:!0}:e).init&&console.warn("watch.init is depricated"),(r=this).root,c=r.scope,L.isFunction(t)?(o=t,a=q.utils.getId(),p=!0):(p=!1,o=null,"::"===(t=t.trim()).slice(0,2)&&(t=t.slice(2),e.oneTime=!0),a=t,a=e.deep?"d#"+a:e.isArray?"a#"+a:"v#"+a),q.debug.watch&&console.log("$watch",t),s=!1,!p)if(e.watchText)o=e.watchText.fn;else{if((a=q.utils.compile.expression(t)).filter){for(var u,f=r,p=a,h=n,d=e,m=null,v=d.oneTime,g=(d.isArray?m="array":d.deep&&(m="deep"),h||(u={el:d.element,ea:d.elementAttr},h=function(e){T(f.scope,u,e)}),q.utils.parsFilter(p.filter)),y=[],b=g.result.length-1;0<=b;b--){var w=q.core.getFilter(g.result[b].name,f);(w=q.core.buildFilterNode(f,g.result[b],w,h)).watchMode&&(m=w.watchMode),w.onStop&&y.push(w.onStop),h=w.onChange}return d={oneTime:v},"array"===m?d.isArray=!0:"deep"===m&&(d.deep=!0),y.length&&(d.onStop=function(){y.forEach(function(e){return e()}),y.length=0}),f.watch(p.expression,h,d)}s=a.isSimple&&0===a.simpleVariables.length,o=a.fn}return e.deep&&(e.isArray=!1),i={isStatic:s,isArray:Boolean(e.isArray),extraLoop:!e.readOnly,deep:!0===e.deep?10:e.deep,value:x,callback:n,exp:o,src:""+t,onStop:e.onStop||null,el:e.element||null,ea:e.elementAttr||null},s?r.watch("$onScanOnce",function(){return T(c,i,i.exp(c))}):r.watchList.push(i),l={$:i,stop:function(){if(e.onStop)try{e.onStop()}catch(e){q.exceptionHandler(e,"Error in onStop of watcher: "+t,t)}if(!i.isStatic)return D(r.watchList,i)},refresh:function(){var e=i.exp(r.locals);return e&&i.deep?i.value=q.utils.clone(e,i.deep):e&&i.isArray?i.value=e.slice():i.value=e}},e.oneTime&&(i.callback=function(e){if(void 0!==e)return l.stop(),n(e)}),l},u.prototype.watchGroup=function(e,t){var n,r,i,o,a,l=this;if(!t&&L.isFunction(e)&&(t=e,e=null),a=!1,n=function(){if(!a)return a=!0,l.watch("$onScanOnce",function(){return a=!1,t()})},e)for(r=0,o=e.length;r<o;r++)i=e[r],l.watch(i,n);return n},c=window.performance?function(){return Math.floor(performance.now())}:function(){return(new Date).getTime()},I=function(e,t){var n,r,i,o;if(null===e||null===t)return!0;if((o=typeof e)!=typeof t)return!0;if("object"==o){if(e.length!==t.length)return!0;for(n=r=0,i=e.length;r<i;n=++r)if(e[n]!==t[n])return!0}return!1},T=function(e,t,n){t.el?t.ea?t.el.setAttribute(t.ea,n):t.el.nodeValue=n:t.callback.call(e,n)},w=function(e,t,n,r){return t={src:n.src,scope:t.scope,locals:t.locals},n.el&&(t.element=n.el),q.exceptionHandler(e,(1===r?"$scan, error in callback: ":"$scan, error in expression: ")+n.src,t)},b=function(){},V=function(e,t){e.root;var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v=!1,g=0,y=0;if(e){for(p=[],a=0,i=e;i;){for(u=i.locals,y+=i.watchList.length,l=0,s=(h=i.watchList.slice()).length;l<s;l++){c=(m=h[l]).value;try{d=m.exp(u)}catch(e){o=e,d=b}if(c!==d){if(f=!1,m.isArray?(n=Array.isArray(c))===(r=Array.isArray(d))?n?I(c,d)&&(f=!0,m.value=d.slice()):(f=!0,m.value=d):(f=!0,m.value=r?d.slice():d):m.deep?q.utils.equal(c,d,m.deep)||(f=!0,m.value=q.utils.clone(d,m.deep)):(f=!0,m.value=d),f)if(f=!1,d===b)w(o,i,m);else{g++;try{m.el?m.ea?null!=d?m.el.setAttribute(m.ea,d):m.el.removeAttribute(m.ea):m.el.nodeValue=d:(c===x&&(c=void 0),"$scanNoChanges"!==m.callback.call(i.scope,d,c)&&m.extraLoop&&(v=!0))}catch(e){w(o=e,i,m,1)}}1<q.debug.scan&&console.log("changed:",m.src)}}p.push.apply(p,i.children),i=p[a++]}t.total=y,t.changes=g,t.extraLoop=v}},u.prototype.digest=function(){var e,t,n,r,i,o=this.root,a=10,l=0;for(q.debug.scan&&(i=c()),r={total:0,changes:0,extraLoop:!1,src:"",scope:null,element:null};a;){if(a--,o.extraLoop=!1,o.watchers.onScanOnce.length)for(n=o.watchers.onScanOnce.slice(),e=o.watchers.onScanOnce.length=0,t=n.length;e<t;e++)n[e].call(o);if(V(this,r),l+=r.changes,!r.extraLoop&&!o.extraLoop&&!o.watchers.onScanOnce.length)break}return q.debug.scan&&(i=c()-i,console.log("$scan: loops: ("+(10-a)+"), last-loop changes: "+r.changes+", watches: "+r.total+" / "+i+"ms")),r.mainLoop=a,r.totalChanges=l,r},u.prototype.scan=function(e){var t,n,r,i,o,a,l,c,s,u=this.root;if(e=e||{},!q.option.zone||e.zone){if((e=L.isFunction(e)?{callback:e}:e).callback&&u.watchers.finishScanOnce.push(e.callback),e.late)return u.lateScan?void 0:(u.lateScan=!0,void q.nextTick(function(){if(u.lateScan)return u.topCD.scan()}));if("scaning"!==u.status){if(u.lateScan=!1,u.status="scaning",(e=u.topCD?u.topCD.digest():{}).totalChanges)for(n=0,o=(c=u.watchers.any).length;n<o;n++)(0,c[n])();for(u.status=null,r=0,a=(s=u.watchers.finishScan).length;r<a;r++)(0,s[r])();for(t=u.watchers.finishScanOnce.slice(),i=u.watchers.finishScanOnce.length=0,l=t.length;i<l;i++)t[i].call(u);if(0===e.mainLoop)throw"Infinity loop detected";return e}u.extraLoop=!0}},(q.core.ChangeDetector=u).prototype.compile=function(e,t){return q.utils.compile.expression(e,t).fn},u.prototype.setValue=function(t,n){var r,i,o,a,l,c,s,u,f=this.compile(t+" = $value",{input:["$value"],no_return:!0});try{return f(this.locals,n)}catch(e){if(r=e,c="can't set variable: "+t,q.debug.parser&&console.warn(c),0<=(""+r).indexOf("TypeError")&&(u=t.match(/^([\w\d\.]+)\.[\w\d]+$/))&&u[1]){for(l=this.locals,i=0,a=(s=u[1].split(".")).length;i<a;i++)void 0===l[o=s[i]]&&(l[o]={}),l=l[o];try{return void f(this.locals,n)}catch(e){}}return q.exceptionHandler(r,c,{name:t,value:n})}},u.prototype.eval=function(e){return this.compile(e)(this.locals)},u.prototype.getValue=function(e){return this.eval(e)},q.text.$base=function(t){var n=t.point,e=t.cd,r=e.scope,i=(r.$ns&&r.$ns.text?r.$ns:q).text[t.name];if(i)return i.call(e,(i={changeDetector:e,setter:function(e){if(t.update)return n.value=null===e?"":""+e,t.update()},setterRaw:function(e){if(t.updateRaw)return n.value=null===e?"":""+e,t.updateRaw()},finally:function(e){if(t.finally)return n.value=null===e?"":""+e,n.type="text",t.finally(),t.update=null,t.finally=null}}).setter,t.exp,r,i);throw"No directive alight.text."+t.name},u.prototype.watchText=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A,E,B;if(n=n||{},i=this,q.debug.watchText&&console.log("$watchText",e),D=q.utils.compile.buildSimpleText(e,null))i.watch(e,t,{watchText:D,element:n.element,elementAttr:n.elementAttr});else{for(a=q.utils.parsText(e),x=!(r=!(E=0)),c=s=l=function(){},d=0,g=a.length;d<g;d++)if("expression"===(o=a[d]).type)if(w=(u=o.list.join("|")).match(/^([^\w\d\s\$"'\(\u0410-\u044F\u0401\u0451]+)/))o.isDir=!0,w=w[1],u="#"===w?(h=u.indexOf(" "))<0?(w=u.substring(1),""):(w=u.slice(1,h),u.slice(h)):u.substring(w.length),q.text.$base({name:w,exp:u,cd:i,point:o,update:function(){return c()},updateRaw:function(){return s()},finally:function(){return c(),l()}}),x=!0,"text"!==o.type&&(r=!1);else if((w=q.utils.compile.expression(u,{string:!0})).filter)E++,o.watched=!(r=!1),function(t){i.watch(u,function(e){return t.value=e=null==e?"":e,c()})}(o);else{if(o.fn=w.fn,!w.rawExpression)throw"Error";w.isSimple&&0===w.simpleVariables.length?(o.type="text",o.value=o.fn()):(o.re=w.rawExpression,E++)}if(r)if(E)D=x?q.utils.compile.buildSimpleText(null,a):q.utils.compile.buildSimpleText(e,a),i.watch(e,t,{watchText:{fn:D.fn},element:n.element,elementAttr:n.elementAttr});else{for(C="",m=0,y=a.length;m<y;m++)o=a[m],C+=o.value;i.watch("$onScanOnce",function(){return T(i.scope,{callback:t,el:n.element,ea:n.elementAttr},C)})}else if(B={callback:t,el:n.element,ea:n.elementAttr},a.scope=i.scope,p=q.utils.compile.buildText(e,a),s=function(){return T(i.scope,B,p())},E){for(A=null,k="",c=function(){k=p()},l=function(){var e,t;for(h=!0,e=0,t=a.length;e<t;e++)if("expression"===(o=a[e]).type){h=!1;break}h&&(i.watch("$finishScanOnce",function(){return A.stop()}),n.onStatic)&&n.onStatic()},D=function(){return k},v=0,b=a.length;v<b;v++)"expression"!==(o=a[v]).type||o.isDir||o.watched||(o.watched=!0,function(t,e){i.watch(e,function(e){return t.value=e=null==e?"":e,c()})}(o,o.list.join(" | ")));c(),A=i.watch(D,t,{element:n.element,elementAttr:n.elementAttr})}else $=!1,f=function(){return $=!1,s()},(c=function(){if(!$)return $=!0,i.watch("$onScanOnce",f)})()}},H={TR:1,TD:1,LI:1},q.utils.optmizeElement=function(e,t){var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w;if(1===e.nodeType){for(t=t||!q.option.domOptimizationRemoveEmpty,"PRE"===e.nodeName&&(t=!0),!(o=e.firstChild)||3!==o.nodeType||o.nodeValue.trim()||t||(L.remove(o),o=e.firstChild),v=!1;o;)d=o.nextSibling,!v||3!==o.nodeType||o.nodeValue.trim()||t?(v=1===o.nodeType&&H[o.nodeName],q.utils.optmizeElement(o,t)):L.remove(o),o=d;!(o=e.lastChild)||3!==o.nodeType||o.nodeValue.trim()||t||L.remove(o)}else if(3===e.nodeType&&(b=e.data,p=q.utils.pars_start_tag,!((l=b.indexOf(p))<0||b.slice(l+p.length).indexOf(p)<0))){for(m="t",y=[n={value:""}],c=0,u=(i=q.utils.parsText(b)).length;c<u;c++)"text"===(r=i[c]).type?n.value+=r.value:(a=r.list.join("|"),w=q.utils.pars_start_tag+a+q.utils.pars_finish_tag,a.match(/^([^\w\d\s\$"'\(\u0410-\u044F\u0401\u0451]+)/)?("t"===m||"d"===m?n.value+=w:y.push(n={value:w}),m="d"):1===r.list.length?("t"===m||"v"===m?n.value+=w:y.push(n={value:w}),m="v"):"t"===m?n.value+=w:y.push(n={value:w}));if(!(y.length<2))for((o=e).data=y[0].value,s=0,f=(g=y.slice(1)).length;s<f;s++)r=g[s],h=document.createTextNode(r.value),L.after(o,h),o=h}},q.hooks.attribute=e=[],e.push({code:"dataPrefix",fn:function(){"data-"===this.attrName.slice(0,5)&&(this.attrName=this.attrName.slice(5))}}),e.push({code:"colonNameSpace",fn:function(){var e,t;this.directive||this.name||((t=(e=(t=this.attrName.match(/^(\w+)[\-\:](.+)$/))?(this.ns=t[1],t[2]):(this.ns="$global",this.attrName)).match(/^([^\.]+)\.(.*)$/))&&(e=t[1],this.attrArgument=t[2]),this.name=e.replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}))}}),e.push({code:"getGlobalDirective",fn:function(){var e;this.directive||((e=q.d[this.ns])?(this.directive=e[this.name],this.directive||("$global"===this.ns?this.result="noNS":this.result="noDirective",this.stop=!0)):(this.result="noNS",this.stop=!0))}}),e.push({code:"cloneDirective",fn:function(){var e,t,n=this.directive,r=this.ns,i=this.name,o={};if(L.isFunction(n))o.init=n;else{if(!L.isObject(n))throw"Wrong directive: "+r+"."+i;for(e in n)t=n[e],o[e]=t}if(o.priority=n.priority||q.priority[r]&&q.priority[r][i]||0,o.restrict=n.restrict||"A",o.restrict.indexOf(this.attrType)<0)throw"Directive has wrong binding (attribute/element): "+i;this.directive=o}}),e.push({code:"preprocessor",fn:function(){var a=this.ns,l=this.name,c=this.directive;c.$init=function(e,t,n,r){function i(){for(var e,t=o.procLine,n=e=0,r=t.length;e<r;n=++e)if(t[n].fn.call(o),o.isDeferred){o.procLine=t.slice(n+1);break}return o.async=!0,null}var o={element:t,value:n,cd:e,env:r,ns:a,name:l,doBinding:!1,directive:c,isDeferred:!1,procLine:q.hooks.directive,makeDeferred:function(){return o.isDeferred=!0,o.doBinding=!0,o.retStopBinding=!0,o.async=!1,function(){if(o.isDeferred=!1,o.async)return i()}}};if(c.stopBinding&&(r.stopBinding=!0),i(),o.retStopBinding)return"stopBinding"}}}),(t=q.hooks.directive).push({code:"init",fn:function(){var e;this.directive.init&&(q.debug.directive&&this.directive.scope&&console.warn(this.ns+"-"+this.name+" uses scope and init together, probably you need use link instead of init"),this.env.changeDetector=this.cd,e=this.directive.init.call(this.env,this.cd.scope,this.element,this.value,this.env))&&e.start&&e.start()}}),t.push({code:"templateUrl",fn:function(){var t,n=this;this.directive.templateUrl&&(t=this.makeDeferred(),L.ajax({cache:!0,url:this.directive.templateUrl,success:function(e){return n.directive.template=e,t()},error:t}))}}),t.push({code:"template",fn:function(){var e;this.directive.template&&(1===this.element.nodeType?this.element.innerHTML=this.directive.template:8===this.element.nodeType&&((e=document.createElement("p")).innerHTML=this.directive.template.trim(),e=e.firstChild,L.after(this.element,e),this.element=e,this.doBinding=!0))}}),t.push({code:"scope",fn:function(){var e,t;if(this.directive.scope){switch(t=this.cd,this.directive.scope){case!0:e=t.new({$parent:t.scope});break;case"root":e=q.ChangeDetector({$parent:t.scope}),t.watch("$destroy",function(){return e.destroy()});break;default:throw"Wrong scope value: "+this.directive.scope}this.env.parentChangeDetector=t,this.cd=e,this.doBinding=!0,this.retStopBinding=!0}}}),t.push({code:"link",fn:function(){var e;this.directive.link&&(this.env.changeDetector=this.cd,e=this.directive.link.call(this.env,this.cd.scope,this.element,this.value,this.env))&&e.start&&e.start()}}),t.push({code:"scopeBinding",fn:function(){this.doBinding&&!this.env.stopBinding&&q.bind(this.cd,this.element,{skip_attr:this.env.skippedAttr()})}}),a=function(e,t,n){var r;"A"===t.attr_type?((r=n||{}).priority=q.priority.$attribute,r.is_attr=!0,r.name=e,r.attrName=e,r.element=t.element,t.list.push(r)):"M"===t.attr_type&&t.list.push(n)},S=function(e,t){var n,r,i,o;if(0<=t.skip_attr.indexOf(e))return a(e,t,{skip:!0});for(n={attrName:e,attrType:t.attr_type,element:t.element,cd:t.cd,result:null},r=0,i=(o=q.hooks.attribute).length;r<i&&(o[r].fn.call(n),!n.stop);r++);if("noNS"!==n.result)return"noDirective"===n.result?"E"===t.attr_type?void t.list.push({name:e,priority:-10,attrName:e,noDirective:!0}):void a(e,t,{noDirective:!0}):void t.list.push({name:e,directive:n.directive,priority:n.directive.priority,attrName:e,attrArgument:n.attrArgument});a(e,t)},U=function(e,t){return e.priority===t.priority?0:e.priority>t.priority?-1:1},K=function(e,t,n,r){if(!(n.indexOf(q.utils.pars_start_tag)<0))return e.watchText(n,null,{element:t,elementAttr:r}),!0},W=function(e,t,n){var r=t.data;if(!(r.indexOf(q.utils.pars_start_tag)<0))return e.watchText(r,null,{element:t}),r},R=function(e,t,n){var r,i,o,a=t.nodeValue.trim();if("directive:"===a.slice(0,10)){if(o=0<=(o=(a=a.slice(10).trim()).indexOf(" "))?(i=a.slice(0,o-1+1||9e9),a.slice(o+1)):(i=a,""),r={list:a=[],element:t,attr_type:"M",cd:e,skip_attr:[]},S(i,r),(r=a[0]).noDirective)throw"Comment directive not found: "+i;i=r.directive,a=new _({element:t,attrName:r.attrName,attributes:a}),q.debug.directive&&console.log("bind",r.attrName,o,r);try{i.$init(e,t,o,a)}catch(n){q.exceptionHandler(n,"Error in directive: "+r.name,{value:o,env:a,cd:e,scope:e.scope,element:t})}return a.skipToElement?{directive:1,skipToElement:a.skipToElement}:{directive:1,skipToElement:null}}},(_=function(e){var t,n;for(t in e)n=e[t],this[t]=n;return this}).prototype.takeAttr=function(e,t){var n,r,i,o;for(1===arguments.length&&(t=!0),r=0,i=(o=this.attributes).length;r<i;r++)if((n=o[r]).attrName===e)return t&&(n.skip=!0),this.element.getAttribute(e)||!0},_.prototype.skippedAttr=function(){for(var e,t=this.attributes,n=[],r=0,i=t.length;r<i;r++)(e=t[r]).skip&&n.push(e.attrName);return n},_.prototype.scan=function(e){return this.changeDetector.scan(e)},_.prototype.on=function(e,t,n){return this.changeDetector.on(e,t,n)},_.prototype.watch=function(e,t,n){return this.changeDetector.watch(e,t,n)},_.prototype.watchGroup=function(e,t){return this.changeDetector.watchGroup(e,t)},_.prototype.watchText=function(e,t,n){return this.changeDetector.watchText(e,t,n)},_.prototype.getValue=function(e){return this.changeDetector.getValue(e)},_.prototype.setValue=function(e,t){return this.changeDetector.setValue(e,t)},_.prototype.eval=function(e){return this.changeDetector.eval(e)},_.prototype.new=function(e,t){return!0===t?t={locals:!0}:!0===e&&null==t&&(t={locals:!(e=null)}),this.changeDetector.new(e,t)},_.prototype.bind=function(e,t,n){var r,i,o,a,l,c,s;for(this.stopBinding=!0,l=o=0,c=arguments.length;l<c;l++)(r=arguments[l])instanceof u&&(i=r,o+=1),L.isElement(r)&&(a=r,o+=1);return s=arguments[o]||{skip:this.skippedAttr()},a=a||this.element,i=i||this.changeDetector,q.bind(i,a,s)},z=function(e,i,t){var n,r,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A={attr:[],dir:[],children:[]},E={directive:0,hook:0,skipToElement:null,fb:A},B=(t=t||{}).skip_attr;if(!(D=!1)===t.skip?t.skip_top=!0:B=B||t.skip||[],B instanceof Array||(B=[B]),!t.skip_top){for(n={list:g=[],element:i,skip_attr:B,attr_type:"E",cd:e},o=i.nodeName.toLowerCase(),S(o,n),"script"!==o&&"style"!==o||(D=!0),n.attr_type="A",h=0,d=(x=i.attributes).length;h<d;h++)r=x[h],S(r.name,n);if(t.attachDirective)for(o in k=t.attachDirective)k[o],S(o,n);for(y=0,m=(g=g.sort(U)).length;y<m;y++)if(!(s=g[y]).skip){if(s.noDirective)throw"Directive not found: "+s.name;if(s.skip=!0,C=t.attachDirective&&t.attachDirective[s.attrName]?t.attachDirective[s.attrName]:i.getAttribute(s.attrName),s.is_attr)K(e,i,C,s.attrName)&&A.attr.push({attrName:s.attrName,value:C});else{f=s.directive,u=new _({element:i,attrName:s.attrName,attrArgument:s.attrArgument||null,attributes:g,stopBinding:!1,elementCanBeRemoved:t.elementCanBeRemoved,fbElement:t.fbElement}),q.debug.directive&&console.log("bind",s.attrName,C,s);try{"stopBinding"===f.$init(e,i,C,u)&&(D=!0)}catch(t){q.exceptionHandler(t,"Error in directive: "+s.attrName,{value:C,env:u,cd:e,scope:e.scope,element:i})}if(u.fastBinding?(f=L.isFunction(u.fastBinding)?u.fastBinding:f.init,A.dir.push({fb:f,attrName:s.attrName,value:C,attrArgument:u.attrArgument,fbData:u.fbData})):E.directive++,u.stopBinding){D=!0;break}u.skipToElement&&(E.skipToElement=u.skipToElement)}}}if(!D)for($=null,p=b=0,v=(l=function(){for(var e=i.childNodes,t=[],n=0,r=e.length;n<r;n++)a=e[n],t.push(a);return t}()).length;b<v;p=++b)(a=l[p])&&($?$===a&&($=null):(t.fbElement&&(c={fbElement:t.fbElement.childNodes[p]}),w=N(e,a,c),E.directive+=w.directive,E.hook+=w.hook,$=w.skipToElement,w.fb&&(w.fb.text||w.fb.attr&&w.fb.attr.length||w.fb.dir&&w.fb.dir.length||w.fb.children&&w.fb.children.length)&&A.children.push({index:p,fb:w.fb})));return E},N=function(e,t,n){var r,i,o,a,l,c,s={directive:0,hook:0,skipToElement:null,fb:null};if(q.hooks.binding.length)for(i=0,o=(l=q.hooks.binding).length;i<o;i++)if(r=l[i],s.hook+=1,(a=r.fn(e,t,n))&&a.owner)return s;return 1===t.nodeType?(a=z(e,t,n),s.directive+=a.directive,s.hook+=a.hook,s.skipToElement=a.skipToElement,s.fb=a.fb):3===t.nodeType?(c=W(e,t))&&(s.fb={text:c}):8===t.nodeType&&(a=R(e,t))&&(s.directive+=a.directive,s.skipToElement=a.skipToElement),s},q.nextTick=(o=null,l=[],P=function(){var e,t,n,r,i;for(o=null,t=l.slice(),n=l.length=0,r=t.length;n<r;n++){e=(i=t[n])[0],i=i[1];try{e.call(i)}catch(t){q.exceptionHandler(t,"$nextTick, error in function",{fn:e,self:i})}}return null},function(e){if(l.push([e,this]),!o)return o=setTimeout(P,0)}),s=q.bind=function(e,t,n){var r,i,o,a,l;if(!e)throw"No changeDetector";if(!t)throw"No element";if(n=n||{},q.option.domOptimization&&!n.noDomOptimization&&q.utils.optmizeElement(t),(r=!(l=e.root).finishBinding_lock)&&(l.finishBinding_lock=!0,l.bindingResult={directive:0,hook:0}),t=N(e,t,n),l.bindingResult.directive+=t.directive,l.bindingResult.hook+=t.hook,e.digest(),r){for(l.finishBinding_lock=!1,a=l.watchers.finishBinding.slice(),i=l.watchers.finishBinding.length=0,o=a.length;i<o;i++)(0,a[i])();t.total=l.bindingResult}return t},q.bind=function(e,t,n){var r=e.root;if(i=q.option.zone){var i=!0===i?Zone:i,o=r.zone;if(o||(r.zone=o=i.current.fork({name:i.current.name+".x",properties:{root:r},onInvokeTask:fe})),i.current!==o)return r.zone.run(s,null,[e,t,n])}return s(e,t,n)},q.bootstrap=function(e,t){if(e){var n,r;if(e instanceof q.core.ChangeDetector?(r=e,e=t):t instanceof q.core.ChangeDetector?r=t:L.isFunction(t)?(r=q.ChangeDetector(n={}),t.call(r,n)):t&&(r=q.ChangeDetector(t)),Array.isArray(e)){for(var i=void 0,o=0,a=e;o<a.length;o++){var l=a[o];i=q.bootstrap(l,r)}return i}if("string"==typeof e){for(var i=void 0,c=0,s=document.querySelectorAll(e);c<s.length;c++){var u=s[c];i=q.bootstrap(u,r)}return i}if(r=r||q.ChangeDetector(),L.isElement(e)){for(var f,p,h,d=0,m=["al-app","al:app","data-al-app"];d<m.length&&(p=e.getAttribute(f=m[d]),e.removeAttribute(f),!p);d++);return p&&(h={skip_attr:[f],attachDirective:{}},q.d.al.ctrl?h.attachDirective["al-ctrl"]=p:h.attachDirective[p+"!"]=""),q.bind(r,e,h),r}q.exceptionHandler("Error in bootstrap","Error input arguments",{input:e})}else q.bootstrap("[al-app]"),q.bootstrap("[al\\:app]"),q.bootstrap("[data-al-app]")},q.utils.getId=(G=function(){for(var e,t,n="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),r=Math.floor((new Date).valueOf()/1e3)-1388512800,i="";0<r;)t=r-62*(e=Math.floor(r/62)),r=e,i=n[t]+i;return i}(),Q=1,function(){return G+"#"+Q++}),q.utils.clone=f=function(e,t){var n,r,i,o;if((t=null==t?128:t)<1)return null;if(!e)return e;if("object"!=typeof e)return e;if(e instanceof Array){for(var a=[],l=0,c=e.length;l<c;l++)n=e[l],a.push(f(n,t-1));return a}if(e instanceof Date)return new Date(e.valueOf());if(e.nodeType&&"function"==typeof e.cloneNode)return e;for(r in i={},e)o=e[r],"$"!==r[0]&&(i[r]=f(o,t-1));return i},q.utils.equal=p=function(e,t,n){var r,i,o,a,l,c,s;if(!((n=null==n?128:n)<1)){if(!e||!t)return e===t;if((c=typeof e)!=typeof t)return!1;if("object"!=c)return e===t;if(e instanceof Array){if(e.length!==t.length)return!1;for(r=i=0,a=e.length;i<a;r=++i)if(s=e[r],!p(s,t[r],n-1))return!1}else{if(e instanceof Date)return e.valueOf()===t.valueOf();if(e.nodeType&&"function"==typeof e.cloneNode)return e===t;for(o in l={},e)if(s=e[o],"$"!==o[0]&&(l[o]=!0,!p(s,t[o],n-1)))return!1;for(o in t)if(s=t[o],"$"!==o[0]&&!l[o]&&!p(s,e[o],n-1))return!1}}return!0},q.exceptionHandler=function(e,t,n){var r=[];return t&&r.push(t),e&&e.message&&r.push(e.message),n&&r.push(n),e&&r.push(e.stack||e),console.error.apply(console,r)},E=(y=function(){for(var e={},t=0,n=arguments.length;t<n;t++)e[arguments[t]]=!0;return e})("instanceof","typeof","in","null","true","false","undefined","return"),J=/[a-zA-Z\u0410-\u044F\u0401\u0451_\.\$]/,$=function(e){return e.match(J)},C=function(e){return 48<=e.charCodeAt()&&e.charCodeAt()<=57},X=y("+","-",">","<","=","&","|","^","!","~"),A=function(e){return X[e]||!1},Z=y("=","+=","-=","++","--","|=","^=","&=","!=","<<=",">>="),q.utils.parsExpression=function(e,t){var h,d,s,k,m,u,v=y.apply(null,(t=t||{}).input||[]),D=1,g={isSimple:!(t=(k=function(e){for(var t,n,r,i,o=e.line,a=e.result||[],l=e.index||0,c=e.level||0,s=e.stopKey||null,u="",f=null,p=[],h="",d="",m=!1,v="",g="",y="",b=0,w=null,x=function(){return y&&a.push({type:"free",value:y}),y=""};l<=o.length;)if(r=o[l-1],t=o[l++]||"",n=o[l],(m&&y||!t)&&x(),"string"===m)t===v&&"\\"!==r?(a.push({type:"string",value:g+=t}),m=v=g=""):g+=t;else{if("key"===m){if($(t)||C(t)){u+=t;continue}if("["===t){if(u+=t,!(i=k({line:o,index:l,level:c+1,stopKey:"]"})).stopKeyOk)throw"Error expression";l=i.index,u+="###"+i.uniq+"###]",p.push(i);continue}if("?"===t&&("."===n||"("===n||"["===n)){u+=t;continue}if("("===t){if(u+=t,!(i=k({line:o,index:l,level:c+1,stopKey:")"})).stopKeyOk)throw"Error expression";l=i.index,u+="###"+i.uniq+"###)",p.push(i);continue}f={type:"key",value:u,start:l-u.length-1,finish:l-1,children:p},a.push(f),u=m="",p=[]}else if("sign"===m){if(A(t)){h+=t;continue}if("|"===h&&0===c&&0===b){w=o.substring(l-1),l=o.length+1;continue}(Z[h]||"="===h[0]&&"="!==h[1])&&(f.assignment=!0),a.push({type:"sign",value:h}),h=m=""}else if("digit"===m){if(C(t)||"."===t){d+=t;continue}a.push({type:"digit",value:d}),d=""}if($(t))m="key",u+=t;else if(A(t))m="sign",h+=t;else if(C(t))m="digit",d+=t;else if('"'===t||"'"===t)m="string",g+=v=t;else{if(t===s)return x(),{result:a,index:l,stopKeyOk:!0,uniq:D++};"("===t&&b++,")"===t&&b--,"{"===t?(x(),i=k({line:o,index:l,level:c+1,stopKey:"}"}),a.push({type:"{}",child:i}),l=i.index):(":"===t&&"}"===s&&(f.type="free"),y+=t)}}return x(),{result:a,index:l,filter:w}})({line:e})).filter,simpleVariables:[]};return t.filter?(g.expression=e.substring(0,e.length-t.filter.length-1),g.filter=t.filter):g.expression=e,m=function(e){return{count:(e=e.split(/[\.\[\(\?]/)).length,firstPart:e[0]}},u=function(e,t){return t?"($$="+e+",$$==null)?undefined:":"($$=$$"+e+",$$==null)?undefined:"},s=function(e){return e.split(/[\.\[\(\?]/)[0]},d=function(e){var t,n,r,i,o,a,l,c;if("this"===e)return"$$scope";if(a=s(e),r=E[a]||v[a],"this"===a&&(e="$$scope"+e.slice(4),r=!0),1===(a=e.split("?")).length)return r?e:"$$scope."+e;for(t=r?(c=u(a[0],!0),a[0]):(c=u("scope."+a[0]),"scope."+a[0]),n=0,i=(l=a.slice(1,a.length-1)).length;n<i;n++)"("===(o=l[n])[0]?c+=u(t+o,r):(c+=u(o),t+=o);return"("===(e=a[a.length-1])[0]?(r||(c+="$$"),c+=t+e):c+="$$"+e,"("+c+")"},h=function(e){for(var t,n,r,i,o,a,l,c,s="",u=e.result,f=0,p=u.length;f<p;f++)if("key"===(n=u[f]).type){if(n.assignment?(a="this"===(c=m(n.value)).firstPart?"$$scope"+n.value.substring(4):v[c.firstPart]?n.value:c.count<2?"($$scope.$$root || $$scope)."+n.value:"$$scope."+n.value,g.isSimple=!1):E[n.value]?a=n.value:(a=d(n.value),g.simpleVariables.push(a)),n.children.length)for(r=0,o=(l=n.children).length;r<o;r++)i="###"+(t=l[r]).uniq+"###",t=h(t),a=a.split(i).join(t);s+=a}else"{}"===n.type?s+="{"+h(n.child)+"}":s+=n.value;return s},g.result=h(t),q.debug.parser&&console.log(e,g),g},q.utils.parsFilter=function(e){var t,n,r=[];for(e=e.trim();e;){if(!(t=e.match(/^(\w+)([^\w])(.*)$/))){if(!(t=e.match(/^(\w+)$/)))return null;r.push({name:t[1],args:[],raw:""});break}e="|"===t[2]?(r.push({name:t[1],args:[],raw:""}),t[3]):(n=q.utils.parsArguments(t[3],{stop:"|"}),r.push({name:t[1],args:n.result,raw:t[3].slice(0,n.length)}),t[3].slice(n.length+1).trim())}return{result:r}},q.utils.parsArguments=function(e,t){var n,r,i,o,a,l,c,s;for(t=t||{},r="",o=a=0,s=c=!(i=[]),l=function(){r&&(i.push(r),r="")};a<=e.length;)if(n=e[a]||"",a++,c)r+=n,'"'===n&&(c=!1);else if(s)r+=n,"'"===n&&(s=!1);else if('"'===n)r+=n,c=!0;else if("'"===n)r+=n,s=!0;else if(o)r+=n,"("===n&&o++,")"===n&&o--;else if(" "===n||","===n)l();else{if(t.stop&&t.stop===n){l();break}"("===n&&(o=1),r+=n}return l(),{result:i,length:a-1}},q.utils.pars_start_tag="{{",q.utils.pars_finish_tag="}}",ee=function(a){for(var e,t,n=q.utils.pars_start_tag,l=q.utils.pars_finish_tag,c=[],s=0,r=0,u=function(e){return e=a.substring(r,s-(e=e||1)),r=s,e},f=null,p=function(e,t,n){var r,i,o;for(e||(f={type:"expression",list:[]},c.push(f)),r=null;s<a.length;){if(i=r+(r=a[s]),o=a[s+=1],r===t)return;if(!n){if(i===l&&0===e)return f.list.push(u(2)),!0;"("===r?p(e+1,")"):"{"===r?p(e+1,"}"):'"'===r?p(e+1,'"',!0):"'"===r?p(e+1,"'",!0):"|"===r&&0===e&&("|"===o?s+=1:f.list.push(u()))}}},i=null;s<a.length;)if(t=i,i=a[s],s+=1,t+i===n){if((t=u(2))&&c.push({type:"text",value:t}),!p(0))throw"Wrong expression"+a;i=null}return(e=u(-1))&&c.push({type:"text",value:e}),q.debug.parser&&console.log("parsText",c),c},h={},Y=function(e){for(var t,n,r=[],i=0,o=e.length;i<o;i++)n={type:(t=e[i]).type,value:t.value},t.list&&(n.list=t.list.slice()),r.push(n);return r},q.utils.parsText=function(e){var t=h[e];return t||(h[e]=t=ee(e)),Y(t)},q.utils.compile=d={},d.cache={},d.Function=Function,d.expression=function(e,t){var n,r,i,o,a,l;if(t=t||{},a=(e=e.trim())+"#",a=(a+=t.no_return?"+":"-")+(t.string?"s":"v"),t.input&&(a+=t.input.join(",")),o=d.cache[a])return o;r=(o=q.utils.parsExpression(e,{input:t.input})).result,t.no_return?l="var $$;"+r:t.string&&!o.filter?(l="var $$, __ = ("+r+"); return '' + (__ || (__ == null?'':__))",o.rawExpression="(__="+r+") || (__ == null?'':__)"):l="var $$;return ("+r+")";try{i=t.input?((n=t.input.slice()).unshift("$$scope"),n.push(l),d.Function.apply(null,n)):d.Function("$$scope",l)}catch(n){throw q.exceptionHandler(n,"Wrong expression: "+e,{src:e,cfg:t}),"Wrong expression: "+r}return o.fn=i,d.cache[a]=o},d.cacheText={},d.buildText=function(e,t){var n,r,i,o,a,l=d.cacheText[e];if(!l){for(a=[],i=r=0,o=t.length;r<o;i=++r)"expression"===(n=t[i]).type?n.fn?a.push("this["+i+"].fn(this.scope)"):a.push("((x=this["+i+"].value) || (x == null?'':x))"):n.value&&(n=n.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n"),a.push('"'+n+'"'));a=a.join(" + "),l=d.Function("var x; return ("+a+")"),d.cacheText[e]=l}return function(){return l.call(t)}},d.cacheSimpleText={},d.buildSimpleText=function(e,t){var n,r,i,o,a,l,c=e?d.cacheSimpleText[e]:null;if(c||!t)return c||null;for(a=[],l=[],i=r=0,o=t.length;r<o;i=++r)"expression"===(n=t[i]).type?(a.push("("+n.re+")"),n.simpleVariables&&l.push.apply(l,n.simpleVariables)):n.value&&(n=n.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n"),a.push('"'+n+'"'));return a=a.join(" + "),c={fn:d.Function("$$scope","var $$, __; return ("+a+")"),simpleVariables:l},e&&(d.cacheSimpleText[e]=c),c},k=function(e){var t,n,r;if(!e.length)return"el";for(r="el",t=0,n=e.length;t<n;t++)r+=".childNodes["+e[t]+"]";return r},te=function(e){for(var t,n,r=q.utils.parsText(e),i=0,o=r.length;i<o;i++)if("expression"===(t=r[i]).type){if(1<t.list.length)return null;if("#"===(n=t.list[0])[0])return null;if("="===n[0])return null;if("::"===n.slice(0,2))return null;if(!(n=q.utils.compile.expression(n,{string:!0})).rawExpression)throw"Error";t.re=n.rawExpression}return q.utils.compile.buildSimpleText(e,r).fn},q.core.fastBinding=function(e){if(q.option.fastBinding&&!e.directive&&!e.hook&&e.fb)return new m(e)},(m=function(e){var y,b,w=this,x=[];return w.fastWatchFn=[],y=[],(b=function(e,t){var n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g;if(e.dir)for(m=k(y),o=0,s=(p=e.dir).length;o<s;o++)n=p[o],x.push("s.dir("+w.fastWatchFn.length+", "+m+");"),w.fastWatchFn.push(n);if(e.attr)for(a=0,u=(h=e.attr).length;a<u;a++)g=(i=h[a]).value,l=i.attrName,m=k(y),r=te(g),v=g.replace(/"/g,'\\"').replace(/\n/g,"\\n"),r?(x.push('s.fw("'+v+'", '+w.fastWatchFn.length+", "+m+', "'+l+'");'),w.fastWatchFn.push(r)):x.push("s.wt('"+v+"', "+m+", '"+l+"');");if(e.text&&(m=k(y),r=te(e.text),v=e.text.replace(/"/g,'\\"').replace(/\n/g,"\\n"),r?(x.push('s.fw("'+v+'", '+w.fastWatchFn.length+", "+m+");"),w.fastWatchFn.push(r)):x.push('s.wt("'+v+'", '+m+");")),e.children)for(c=0,f=(d=e.children).length;c<f;c++)i=d[c],y.length=t+1,y[t]=i.index,b(i.fb,t+1)})(e.fb,0),x=x.join("\n"),w.resultFn=q.utils.compile.Function("s","el","f$",x),this}).prototype.bind=function(e,t){this.currentCD=e,this.resultFn(this,t,L)},m.prototype.dir=function(e,t){var e=this.fastWatchFn[e],n=this.currentCD,r=new _({attrName:e.attrName,attrArgument:e.attrArgument,changeDetector:n,fbData:e.fbData});(n=e.fb.call(r,n.scope,t,e.value,r))&&n.start&&n.start()},m.prototype.fw=function(e,t,n,r){var i=this.currentCD,o=(t=this.fastWatchFn[t])(i.locals),t={isStatic:!1,isArray:!1,extraLoop:!1,deep:!1,value:o,callback:null,exp:t,src:e,onStop:null,el:n,ea:r||null};i.watchList.push(t),T(i.scope,t,o)},m.prototype.wt=function(e,t,n){this.currentCD.watchText(e,null,{element:t,elementAttr:n})},q.hooks.attribute.unshift({code:"events",fn:function(){var e=this.attrName.match(/^\@([\w\.\-]+)$/);e&&(this.ns="al",this.name="on",this.attrArgument=e[1])}}),q.hooks.eventModifier={},(g=function(e,n){return q.hooks.eventModifier[e]={event:["keydown","keypress","keyup"],fn:function(e,t){e[n]||(t.stop=!0)}}})("alt","altKey"),g("control","ctrlKey"),g("ctrl","ctrlKey"),g("meta","metaKey"),g("shift","shiftKey"),q.hooks.eventModifier.self=function(e,t){if(e.target!==t.element)return t.stop=!0},q.hooks.eventModifier.once={beforeExec:function(e,t){return t.unbind()}},re=function(e,t){var n,r,i,o,a,l={};if("string"==typeof e?l.event=e:"object"==typeof e&&e.event&&(l.event=e.event),"string"==typeof l.event&&(l.event=l.event.split(/\s+/)),t&&l.event){for(i=!1,r=0,o=(a=l.event).length;r<o;r++)if(n=a[r],0<=t.indexOf(n)){i=!0;break}if(!i)return null}return L.isFunction(e)?l.fn=e:e.fn&&(l.fn=e.fn),e.beforeExec&&(l.beforeExec=e.beforeExec),e.init&&(l.init=e.init),l},q.d.al.on=function(e,t,n,r){var u,i;r.attrArgument&&(q.option.removeAttribute&&(t.removeAttribute(r.attrName),r.fbElement)&&r.fbElement.removeAttribute(r.attrName),i=r.attrArgument.split(".")[0],(u=function(){}).prototype=le(r.attrArgument,ne[i]),n&&(u.prototype.fn=r.changeDetector.compile(n,{no_return:!0,input:["$event","$element","$value"]})),u.prototype.expression=n,r.fastBinding=function(e,r,t,n){var i,o,a,l,c,s=new u;for(s.scope=e,s.element=r,s.cd=n.changeDetector,i=function(e){return oe(s,e)},a=0,l=(c=s.eventList).length;a<l;a++)o=c[a],L.on(r,o,i);s.initFn&&s.initFn(e,r,t,n),s.unbind=function(){for(var e=s.eventList,t=0,n=e.length;t<n;t++)o=e[t],L.off(r,o,i)},n.changeDetector.watch("$destroy",s.unbind)},r.fastBinding(e,t,n,r))},ae={enter:13,tab:9,delete:46,backspace:8,esc:27,space:32,up:38,down:40,left:37,right:39},ne={click:{stop:!0,prevent:!0},dblclick:{stop:!0,prevent:!0},submit:{stop:!0,prevent:!0},keyup:{filterByKey:!0},keypress:{filterByKey:!0},keydown:{filterByKey:!0}},le=function(e,t){var n,r,i,o,a,l={attrArgument:e,throttle:null,throttleTime:0,debounce:null,debounceId:null,initFn:null,eventList:null,stop:(t=t||{}).stop||!1,prevent:t.prevent||!1,scan:!0,modifiers:[]},c=(e=e.split("."))[0],s=null;for((o=q.hooks.eventModifier[c])&&(o=re(o)).event&&(l.eventList=o.event,o.fn&&l.modifiers.push(o),o.init)&&(l.initFn=o.init),l.eventList||(l.eventList=[c]),n=0,i=(a=e.slice(1)).length;n<i;n++)"stop"===(r=a[n])?l.stop=!0:"prevent"===r?l.prevent=!0:"nostop"===r?l.stop=!1:"noprevent"===r?l.prevent=!1:"noscan"===r?l.scan=!1:"throttle-"===r.substring(0,9)?l.throttle=Number(r.substring(9)):"debounce-"===r.substring(0,9)?l.debounce=Number(r.substring(9)):(o=q.hooks.eventModifier[r])?(o=re(o,l.eventList))&&l.modifiers.push(o):t.filterByKey&&((s=null===s?{}:s)[r=ae[r]||r]=!0);return l.filterByKey=s,l},ie=function(e,t){return"checkbox"===(e=e.element).type?e.checked:"radio"===e.type?e.value||e.checked:(t.component?t:e).value},v=function(e,t){for(var n,r=e.modifiers,i=0,o=r.length;i<o;i++)(n=r[i]).beforeExec&&n.beforeExec(t,e);if(e.fn)try{e.fn(e.cd.locals,t,e.element,ie(e,t))}catch(n){q.exceptionHandler(n,"Error in event: "+e.attrArgument+" = "+e.expression,{attr:e.attrArgument,exp:e.expression,scope:e.scope,cd:e.cd,element:e.element,event:t})}e.scan&&e.cd.scan()},oe=function(e,t){var n,r,i,o,a,l;if(!e.filterByKey||e.filterByKey[t.keyCode]){if(e.modifiers.length)for((n=function(){}).prototype=e,(r=new n).stop=!1,i=0,o=(l=e.modifiers).length;i<o;i++)if((a=l[i]).fn&&(a.fn(t,r),r.stop))return;e.prevent&&t.preventDefault(),e.stop&&t.stopPropagation(),e.debounce?(e.debounceId&&clearTimeout(e.debounceId),e.debounceId=setTimeout(function(){return e.debounceId=null,v(e,t)},e.debounce)):e.throttle?e.throttleTime<Date.now()&&(e.throttleTime=Date.now()+e.throttle,v(e,t)):v(e,t)}},q.hooks.attribute.unshift({code:"directDirective",fn:function(){var c,e=this.attrName.match(/^(.*)\!$/);e&&(e=e[1].replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}),c=this.cd.locals[e]||q.ctrl[e]||q.option.globalController&&window[e],L.isFunction(c)?this.directive=function(e,t,n,r){var i=r.changeDetector;if(n){for(var o=q.utils.parsArguments(n),a=Array(o.result.length),l=0;l<o.result.length;l++)a[l]=q.utils.compile.expression(o.result[l],{input:["$element","$env"]}).fn(i.locals,t,r);c.apply(i,a)}else c.call(i,e,t,n,r)}:(this.result="noDirective",this.stop=!0))}}),q.hooks.attribute.unshift({code:"elementVariable",fn:function(){var e=this.attrName.match(/^#([\w\.]*)$/);e&&(this.directive=pe,this.attrArgument=e[1])}}),q.d.al.value=function(e,t,n,r){var i,o;return r.fastBinding=!0,r.on(t,"input",i=function(){r.setValue(n,t.value),o.refresh(),r.scan()}),r.on(t,"change",i),o=r.watch(n,function(e){return t.value=e=null==e?"":e,"$scanNoChanges"})},q.d.al.checked=function(e,n,t,r){var i=r.fbData={opt:{},watch:[]};function o(e){var t=r.takeAttr(e);return q.option.removeAttribute&&(n.removeAttribute(e),r.fbElement)&&r.fbElement.removeAttribute(e),t}function a(e,t){var n=o(t);return n?(i.opt[e]=n,1):(n=o(":"+t)||o("al-attr."+t))&&(i.watch.push([n,e]),1)}function c(n,r,i){for(var e in r.fbData.opt)n[e]=r.fbData.opt[e];for(var t=0,o=r.fbData.watch;t<o.length;t++)!function(e){var t=e[1];r.watch(e[0],function(e){n[t]=e,i()})}(o[t])}a("value","value")?r.fastBinding=function(e,t,n,r){var i,o=null;function a(){return t.checked=o&&0<=o.indexOf(l.value),"$scanNoChanges"}var l={};c(l,r,a),i=r.watch(n,function(e){o=e,Array.isArray(o)||(o=null),a()},{isArray:!0}),r.on(t,"change",function(){var e;o||(o=[],r.setValue(n,o)),t.checked?o.indexOf(l.value)<0&&o.push(l.value):0<=(e=o.indexOf(l.value))&&o.splice(e,1),i.refresh(),r.scan()})}:(a("true","true-value"),a("false","false-value"),r.fastBinding=function(e,t,n,r){var i,o,a={true:!0,false:!1};function l(){return t.checked=i===a.true,"$scanNoChanges"}c(a,r,l),o=r.watch(n,function(e){i=e,l()}),r.on(t,"change",function(){i=t.checked?a.true:a.false,r.setValue(n,i),o.refresh(),r.scan()})}),r.fastBinding(e,n,t,r)},q.d.al.if=function(e,t,n,r){var i;return r.elementCanBeRemoved?(q.exceptionHandler(null,r.attrName+" can't control element because of "+r.elementCanBeRemoved,{scope:e,element:t,value:n,env:r}),{}):(r.stopBinding=!0,i={item:null,childCD:null,base_element:null,top_element:null,start:function(){i.prepare(),i.watchModel()},prepare:function(){i.base_element=t,i.top_element=document.createComment(" "+r.attrName+": "+n+" "),L.before(t,i.top_element),L.remove(t)},updateDom:function(e){e?i.insertBlock(e):i.removeBlock()},removeBlock:function(){i.childCD&&(i.childCD.destroy(),i.childCD=null,i.removeDom(i.item),i.item=null)},insertBlock:function(){i.childCD||(i.item=i.base_element.cloneNode(!0),i.insertDom(i.top_element,i.item),i.childCD=r.changeDetector.new(),q.bind(i.childCD,i.item,{skip_attr:r.skippedAttr(),elementCanBeRemoved:r.attrName}))},watchModel:function(){r.watch(n,i.updateDom)},removeDom:function(e){L.remove(e)},insertDom:function(e,t){L.after(e,t)}})},q.d.al.ifnot=function(e,t,n,r){var i=q.d.al.if(e,t,n,r);return i.updateDom=function(e){e?i.removeBlock():i.insertBlock()},i},q.directives.al.repeat={restrict:"AM",init:function(e,$,o,W){var l,U;return W.elementCanBeRemoved?(q.exceptionHandler(null,W.attrName+" can't control element because of "+W.elementCanBeRemoved,{scope:e,element:$,value:o,env:W}),{}):(W.stopBinding=!0,l=W.changeDetector,U={start:function(){U.parsExpression(),U.prepareDom(),U.buildUpdateDom(),U.watchModel()},parsExpression:function(){var e,t=o.trim();if("("===t[0]){if(U.objectMode=!0,e=t.match(/\((\w+),\s*(\w+)\)\s+in\s+(.+)\s+orderBy:(.+)\s*$/))U.objectKey=e[1],U.objectValue=e[2],U.expression=e[3]+(" | toArray:"+U.objectKey+","+U.objectValue+" | orderBy:"+e[4]);else{if(!(e=t.match(/\((\w+),\s*(\w+)\)\s+in\s+(.+)\s*$/)))throw"Wrong repeat: "+o;U.objectKey=e[1],U.objectValue=e[2],U.expression=e[3]+(" | toArray:"+U.objectKey+","+U.objectValue)}U.nameOfKey="$item",U.trackExpression="$item."+U.objectKey}else{if((e=t.match(/(.*) track by ([\w\.\$\(\)]+)/))&&(U.trackExpression=e[2],t=e[1]),!(e=t.match(/\s*(\w+)\s+in\s+(.+)/)))throw"Wrong repeat: "+o;U.nameOfKey=e[1],U.expression=e[2]}},watchModel:function(){var e=U.objectMode?{deep:!0}:{isArray:!0};U.watch=l.watch(U.expression,U.updateDom,e)},prepareDom:function(){var e,t,n,r,i;if(8===$.nodeType){for(U.top_element=$,U.element_list=t=[],e=$.nextSibling;e;){if(8===e.nodeType&&"/directive:"===(i=e.nodeValue.trim().split(/\s+/))[0]&&"al-repeat"===i[1]){W.skipToElement=e;break}t.push(e),e=e.nextSibling}for(n=0,r=t.length;n<r;n++)e=t[n],L.remove(e)}else U.base_element=$,U.top_element=document.createComment(" "+o+" "),L.before($,U.top_element),L.remove($),q.option.removeAttribute&&$.removeAttribute(W.attrName)},makeChild:function(e,t,n){var r=l.new(null,{locals:!0});return U.updateLocals(r,e,t,n),r},updateLocals:function(e,t,n,r){e=e.locals,U.objectMode?(e[U.objectKey]=t[U.objectKey],e[U.objectValue]=t[U.objectValue]):e[U.nameOfKey]=t,e.$index=n,e.$first=0===n,e.$last=n===r.length-1},rawUpdateDom:function(e,t){for(var n,r,i,o,a=0,l=e.length;a<l;a++)n=e[a],L.remove(n);for(i=0,o=t.length;i<o;i++)r=t[i],L.after(r.after,r.element)},buildUpdateDom:function(){return U.updateDom=(V=[],k=null,D=H=0,K=W.skippedAttr(),R="$index"===U.trackExpression?(i={},I=function(e){return i[H]||null},F=function(e){null!=e.$id&&delete i[e.$id]},function(e,t){t.$id=H,i[H]=t}):U.trackExpression?(i={},o=l.compile(U.trackExpression,{input:["$id",U.nameOfKey]}),n=function(e,t){return o(l.scope,e,t)},r=function(e){return e.$alite_id||(e.$alite_id=q.utils.getId())},I=function(e){return null!=(e=n(r,e))?i[e]:null},F=function(e){null!=(e=e.$id)&&delete i[e]},function(e,t){e=n(r,e),t.$id=e,i[e]=t}):window.Map?(i=new Map,I=function(e){return i.get(e)},F=function(e){i.delete(e.item)},function(e,t){i.set(e,t)}):(i={},I=function(e){return"object"!=typeof e?i[e]||null:(e=e.$alite_id)?i[e]:null},F=function(e){var t=e.$id;i[t]&&(e.$id=null,delete i[t])},function(e,t){var n;"object"==typeof e?(n=q.utils.getId(),e.$alite_id=n,t.$id=n,i[n]=t):(t.$id=e,i[e]=t)}),a=[],z=function(e){var t,n=typeof e;if("object"==n)return e&&e.length?e:[];if("number"==n)t=Math.floor(e);else if("string"==n&&(t=Math.floor(e),isNaN(t)))return[];if(t<a.length)a.length=t;else for(;a.length<t;)a.push(a.length);return a},U.element_list?function(e){for(var i,o,a,t,l,n,r,c,s,u,f,p,h,d,m,v,g,y,b,w,x,k,D,$,C,A,E,B,T,_,N=z(e),S=U.top_element,O=[],L=[],M=0,j=V.length;M<j;M++)(D=V[M]).active=!1;for(H=u=0,h=N.length;u<h;H=++u)c=N[H],(D=I(c))&&(D.active=!0);for(t=[],f=0,d=V.length;f<d;f++)if(!(D=V[f]).active){for(D.prev&&(D.prev.next=D.next),D.next&&(D.next.prev=D.prev),F(D),D.CD.destroy(),p=0,m=(B=D.element_list).length;p<m;p++)l=B[p],t.push(l);D.next=null,D.prev=null,D.element_list=null}for(E=null,A=!(i=[]),n=U.element_list.length-1,H=w=0,v=N.length;w<v;H=++w){if(c=N[H],D=I(s=c))if(U.updateLocals(D.CD,c,H,N),D.prev===E){if(A)for(x=0,g=(T=D.element_list).length;x<g;x++)l=T[x],O.push({element:l,after:S}),S=l;S=(E=D).element_list[n],D.active=!0}else{for((D.prev=E)&&(E.next=D),$=0,y=(_=D.element_list).length;$<y;$++)l=_[$],O.push({element:l,after:S}),S=l;(E=D).active=A=!0}else a=U.makeChild(s,H,N),s=function(){for(var e=U.element_list,t=[],n=0,r=e.length;n<r;n++)o=e[n],l=o.cloneNode(!0),i.push({cd:a,el:l}),O.push({element:l,after:S}),t.push(S=l);return t}(),R(c,D={CD:a,element_list:s,prev:E,next:null,active:!0,item:c}),E?(k=E.next,((E.next=D).next=k)&&(k.prev=D)):0===H&&V[0]&&(k=V[0],(D.next=k).prev=D),E=D;L.push(D)}for(V=L,U.rawUpdateDom(t,O),C=O.length=t.length=0,b=i.length;C<b;C++)r=i[C],q.bind(r.cd,r.el,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0})}:function(e){var t,n,r,i,o,a,l,c,s,u,f,p,h,d,m,v,g,y,b,w=z(e),x=U.top_element;for(D++,n=[],v=[],y=null,g=!(t=[]),H=o=0,f=w.length;o<f;H=++o)l=w[H],(m=I(c=l))?(U.updateLocals(m.CD,l,H,w),m.prev===y?(g&&n.push({element:m.element,after:y.element}),x=(y=m).element,m.version=D):((m.prev=y)&&(y.next=m),n.push({element:m.element,after:x}),g=!0,x=m.element,(y=m).version=D)):(c=U.makeChild(c,H,w),$=U.base_element.cloneNode(!0),null===k?(i=U.base_element.cloneNode(!0),b=q.bind(c,$,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0,fbElement:i}),(k=q.core.fastBinding(b)||!1)&&(U.base_element=i)):t.push({cd:c,el:$}),n.push({element:$,after:x}),R(l,m={CD:c,element:x=$,prev:y,next:null,version:D,item:l}),y?(d=y.next,((y.next=m).next=d)&&(d.prev=m)):0===H&&V[0]&&(d=V[0],(m.next=d).prev=m),y=m),v.push(m);for(r=[],s=0,p=V.length;s<p;s++)(m=V[s]).version!==D&&(m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),F(m),m.CD.destroy(),r.push(m.element),m.next=null,m.prev=null,m.element=null);for(V=v,U.rawUpdateDom(r,n),u=n.length=r.length=0,h=t.length;u<h;u++)a=t[u],k?k.bind(a.cd,a.el):q.bind(a.cd,a.el,{skip_attr:K,elementCanBeRemoved:W.attrName,noDomOptimization:!0})});var n,r,i,F,I,o,V,H,k,D,K,R,a,z}})}},q.d.al.init=function(e,t,n,r){var i,o,a,l;q.option.removeAttribute&&(t.removeAttribute(r.attrName),r.fbElement)&&r.fbElement.removeAttribute(r.attrName),i=r.changeDetector,l=["$element"],"window"===r.attrArgument&&l.push("window");try{a=i.compile(n,{no_return:!0,input:l}),r.fastBinding=o=function(e,t,n,r){return a(r.changeDetector.locals,t,window)},o(0,t,0,r)}catch(o){q.exceptionHandler(o,"al-init, error in expression: "+n,{exp:n,scope:e,cd:i,element:t}),r.fastBinding=function(){}}},q.d.al.app={stopBinding:!0},q.d.al.stop={restrict:"AE",stopBinding:!0},q.d.al.cloak=function(e,t,n,r){t.removeAttribute(r.attrName),n&&L.removeClass(t,n)},q.d.al.html={restrict:"AM",priority:100,modifier:{},link:function(i,o,a,l){var c;return l.elementCanBeRemoved&&8!==o.nodeType?(q.exceptionHandler(null,l.attrName+" can't control element because of "+l.elementCanBeRemoved,{scope:i,element:o,value:a,env:l}),{}):(l.stopBinding=!0,c={baseElement:null,topElement:null,activeElement:null,childCD:null,name:a,watchMode:null,start:function(){c.parsing(),c.prepare(),c.watchModel()},parsing:function(){var e,t,n,r;if(l.attrArgument)for(e=0,t=(r=l.attrArgument.split(".")).length;e<t;e++)"literal"===(n=r[e])?c.watchMode="literal":"tpl"===n?c.watchMode="tpl":q.d.al.html.modifier[n]&&q.d.al.html.modifier[n](c,{scope:i,element:o,inputName:a,env:l})},prepare:function(){8===o.nodeType?(c.baseElement=null,c.topElement=o):(c.baseElement=o,c.topElement=document.createComment(" "+l.attrName+": "+a+" "),L.before(o,c.topElement),L.remove(o))},removeBlock:function(){var e,t,n,r;if(c.childCD&&(c.childCD.destroy(),c.childCD=null),c.activeElement){if(Array.isArray(c.activeElement))for(t=0,n=(r=c.activeElement).length;t<n;t++)e=r[t],c.removeDom(e);else c.removeDom(c.activeElement);c.activeElement=null}},insertBlock:function(e){var t,n,r;if(c.baseElement)c.activeElement=c.baseElement.cloneNode(!1),c.activeElement.innerHTML=e,c.insertDom(c.topElement,c.activeElement),c.childCD=l.changeDetector.new(),q.bind(c.childCD,c.activeElement,{skip_attr:l.skippedAttr(),elementCanBeRemoved:l.attrName});else for((r=document.createElement("body")).innerHTML=e,t=c.topElement,c.activeElement=[],c.childCD=l.changeDetector.new();n=r.firstChild;)c.insertDom(t,n),c.activeElement.push(t=n),q.bind(c.childCD,t,{skip_attr:l.skippedAttr(),elementCanBeRemoved:l.attrName})},updateDom:function(e){c.removeBlock(),e&&c.insertBlock(e)},removeDom:function(e){L.remove(e)},insertDom:function(e,t){L.after(e,t)},watchModel:function(){"literal"===c.watchMode?c.updateDom(c.name):"tpl"===c.watchMode?l.watchText(c.name,c.updateDom):l.watch(c.name,c.updateDom)}})}},q.d.al.html.modifier.id=function(t){return t.updateDom=function(e){t.removeBlock(),(e=(e=document.getElementById(e))&&e.innerHTML)&&t.insertBlock(e)}},q.d.al.html.modifier.url=function(t){return t.loadHtml=function(e){L.ajax(e)},t.updateDom=function(e){e?t.loadHtml({cache:!0,url:e,success:function(e){t.removeBlock(),t.insertBlock(e)},error:t.removeBlock}):t.removeBlock()}},q.d.al.html.modifier.scope=function(r,i){var o,a,e=r.name.split(":");if(2===e.length)r.name=e[0],a=e[1];else{if(e=r.name.match(/(.+)\:\s*\:\:([\d\w]+)$/))o=!0;else if(o=!1,!(e=r.name.match(/(.+)\:\s*([\.\w]+)$/)))throw"Wrong expression "+r.name;r.name=e[1],a=e[2]}return r.insertBlock=function(e){var t,n;r.activeElement=r.baseElement.cloneNode(!1),r.activeElement.innerHTML=e,r.insertDom(r.topElement,r.activeElement),e=i.env.changeDetector,(t=r.childCD=e.new(null,{locals:!0})).locals.outer=null,n=e.watch(a,function(e){return t.locals.outer=e},{oneTime:o}),r.childCD.watch("$destroy",function(){return n.stop()}),q.bind(r.childCD,r.activeElement,{skip_attr:i.env.skippedAttr()})}},q.d.al.html.modifier.inline=function(e,t){var n=e.prepare;return e.prepare=function(){return n(),t.env.setValue(e.name,e.baseElement.innerHTML)}},q.d.al.radio=function(e,t,n,r){var i,o=r.takeAttr("al-value"),a=o?r.eval(o):r.takeAttr("value");return r.on(t,"change",function(){r.setValue(n,a),i.refresh(),r.scan()}),i=r.watch(n,function(e){return t.checked=a===e,"$scanNoChanges"})},window.Map?((B=function(){return this.idByItem=new Map,this.itemById={},this.index=1,this}).prototype.acquire=function(e){var t="i"+this.index++;return this.idByItem.set(e,t),this.itemById[t]=e,t},B.prototype.release=function(e){var t=this.itemById[e];delete this.itemById[e],this.idByItem.delete(t)},B.prototype.replace=function(e,t){var n=this.itemById[e];this.idByItem.delete(n),this.idByItem.set(t,e),this.itemById[e]=t},B.prototype.getId=function(e){return this.idByItem.get(e)},B.prototype.getItem=function(e){return this.itemById[e]||null}):((B=function(){return this.itemById={"i#null":null},this}).prototype.acquire=function(e){var t;return null===e?"i#null":("object"==typeof e?(t=e.$alite_id)||(e.$alite_id=t=q.utils.getId()):t=""+e,this.itemById[t]=e,t)},B.prototype.release=function(e){delete this.itemById[e]},B.prototype.replace=function(e,t){this.itemById[e]=t},B.prototype.getId=function(e){return null===e?"i#null":"object"==typeof e?e.$alite_id:""+e},B.prototype.getItem=function(e){return this.itemById[e]||null}),q.d.al.select=function(e,t,n,r){var i,o,a,l,c,s=r.changeDetector.new();return r.stopBinding=!0,s.$select={mapper:o=new B},i=null,s.$select.change=function(){return q.nextTick(function(){return l(i)})},l=function(e){return(e=o.getId(e))?t.value=e:t.selectedIndex=-1},c=s.watch(n,function(e){return l(i=e)}),r.on(t,"input",a=function(e){return i=o.getItem(e.target.value),s.setValue(n,i),c.refresh(),s.scan()}),r.on(t,"change",a),q.bind(s,t,{skip_attr:r.skippedAttr()})},q.d.al.option=function(e,t,n,r){for(var i,o,a,l,r=l=r.changeDetector,c=0;c<=4&&!(a=l.$select);++c)l=l.parent||{};a?(o=a.mapper,i=null,r.watch(n,function(e){i?o.getId(e)!==i?(o.release(i),i=o.acquire(e),t.value=i,a.change()):o.replace(i,e):(i=o.acquire(e),t.value=i,a.change())}),r.watch("$destroy",function(){return o.release(i),a.change()})):q.exceptionHandler("","Error in al-option - al-select is not found",{cd:r,scope:r.scope,element:t,value:n})},q.hooks.attribute.unshift({code:"attribute",fn:function(){var e=this.attrName.match(/^\:([\w\.\-]+)$/);e&&("html"===(e=e[1]).split(".")[0]?(this.name="html",e=e.substring(5)):this.name="attr",this.ns="al",this.attrArgument=e)}}),ce={checked:"checked",readonly:"readOnly",value:"value",selected:"selected",muted:"muted",disabled:"disabled",hidden:"hidden"},q.d.al.attr=function(e,t,i,n){var o,a,r,l,c,s,u,f,p;if(n.attrArgument){if(r=n.attrArgument.split("."),a=r[0],s=ce[a],l=0<r.indexOf("tpl"),q.option.removeAttribute&&(t.removeAttribute(n.attrName),n.fbElement)&&n.fbElement.removeAttribute(n.attrName),o={readOnly:!0},u=null,"style"===a){if(!r[1])throw"Style is not declared";f=r[1].replace(/(-\w)/g,function(e){return e.substring(1).toUpperCase()}),u=function(e,t){return e.style[f]=t=null==t?"":t}}else"class"===a&&1<r.length?(l=!1,c=r.slice(1),u=function(e,t){var n,r,i,o,a;if(t)for(r=0,o=c.length;r<o;r++)n=c[r],L.addClass(e,n);else for(i=0,a=c.length;i<a;i++)n=c[i],L.removeClass(e,n)}):"focus"===a?u=function(e,t){return t?e.focus():e.blur()}:s?u=function(e,t){if(e[s]!==(t=void 0===t?null:t))return e[s]=t}:(o.element=t,o.elementAttr=a);p=l?"watchText":"watch",(r=u?function(e,t,n,r){return r.changeDetector[p](i,function(e){return u(t,e)},o)}:function(e,t,n,r){return r.changeDetector[p](i,null,{readOnly:!0,element:t,elementAttr:a})})(e,t,i,n),n.fastBinding=r}},q.d.al.model=function(e,t,n,r){var i=t.nodeName.toLowerCase();if("select"===i)return q.d.al.select.call(this,e,t,n,r);if("input"===i){if("checkbox"===t.type)return q.d.al.checked.call(this,e,t,n,r);if("radio"===t.type)return q.d.al.radio.call(this,e,t,n,r)}return q.d.al.value.call(this,e,t,n,r)},q.filters.slice=function(e,t,n){return e?n?e.slice(t,n):e.slice(t):null},O=function(e){return e<10?"0"+e:""+e},q.filters.date=function(e,t){var n,r,i,o,a;if(!e)return"";for(o=t,r=0,i=(a=[[/yyyy/g,(e=new Date(e)).getFullYear()],[/mm/g,O(e.getMonth()+1)],[/dd/g,O(e.getDate())],[/HH/g,O(e.getHours())],[/MM/g,O(e.getMinutes())],[/SS/g,O(e.getSeconds())]]).length;r<i;r++)o=o.replace((n=a[r])[0],n[1]);return o},q.filters.json={watchMode:"deep",fn:function(e){return JSON.stringify(q.utils.clone(e),null,4)}},q.filters.filter=function(e,t,n){var r,i,o,a,l,c,s,u,f,p,h;if(2===arguments.length)l=null,h=t;else{if(3!==arguments.length)return e;l=t,h=n}if(!e||null==h||""===h)return e;if(u=[],f=(""+h).toLowerCase(),l)for(i=0,c=e.length;i<c;i++)((r=e[i])[l]===h||0<=(""+r[l]).toLowerCase().indexOf(f))&&u.push(r);else for(o=0,s=e.length;o<s;o++)for(a in r=e[o])((p=r[a])===h||0<=(""+p).toLowerCase().indexOf(f))&&u.push(r);return u},q.filters.orderBy=function(e,n,r){return!e instanceof Array?null:(r=r?1:-1,e.sort(function(e,t){return e[n]<t[n]?-r:e[n]>t[n]?r:0}))},q.filters.throttle={init:function(e,t,n){var r;return t=Number(t),r=null,{onChange:function(e){return r&&clearTimeout(r),r=setTimeout(function(){return r=null,n.setValue(e),n.changeDetector.scan()},t)}}}},q.filters.toArray={init:function(e,t,i){var o,a=2===i.conf.args.length?(o=i.conf.args[0],i.conf.args[1]):(o="key","value"),l=[];return{watchMode:"deep",onChange:function(e){var t,n,r;for(n in l.length=0,e)r=e[n],(t={})[o]=n,t[a]=r,l.push(t);return i.setValue(l)}}}},q.filters.storeTo={init:function(e,t,n){return{onChange:function(e){return n.changeDetector.setValue(t,e),n.setValue(e)}}}},q.text["="]=function(e,t,n,r){if((t=q.utils.compile.expression(t)).filters)throw"Conflict: bindonce and filters, use one-time binding";r.finally(t.fn(r.changeDetector.locals))},q.text["::"]=function(e,t,n,r){r.changeDetector.watch(t,function(e){return r.finally(e)},{oneTime:!0})},se=q.f$,q.component=function($,C){var e,t=$.match(/^(\w+)[\-](.+)$/);t=he(t?(e=t[1],t[2]):(e="$global",$)),q.d[e]||(q.d[e]={}),q.d[e][t]={restrict:"E",stopBinding:!0,priority:q.priority.$component,init:function(e,n,t,r){var i={$sendEvent:function(e,t){(e=new CustomEvent(e)).value=t,e.component=!0,n.dispatchEvent(e)}},o=r.changeDetector.new(),a=q.ChangeDetector(i),l=new _({element:n,attributes:r.attributes,changeDetector:a,parentChangeDetector:o});try{var c=C.call(a,i,n,l)||{}}catch(e){return void q.exceptionHandler(e,"Error in component <"+$+">: ",{element:n,scope:i,cd:a})}c.onStart&&a.watch("$finishBinding",function(){c.onStart(),a.scan()});var s=!1;o.watch("$destroy",function(){s=!0,a.destroy()}),a.watch("$destroy",function(){c.onDestroy&&c.onDestroy(),s||o.destroy()});for(var u=0,f=n.attributes;u<f.length;u++){var p=f[u];if("#"===p.name[0]){var h=p.name.slice(1);if(h){c.api?o.setValue(h,c.api):o.setValue(h,i);break}}}function d(e,t){var n=l.takeAttr(":"+e);if(!n){if(!(n=l.takeAttr(e)))return;t="copy"}de({childCD:a,listener:t,name:e,parentName:n,parentCD:o})}if(c.props)if(Array.isArray(c.props))for(var m=0,v=c.props;m<v.length;m++)d(g=v[m],!0);else for(var g in c.props)d(g,c.props[g]);else for(var y=0,b=n.attributes;y<b.length;y++){var w=(p=b[y]).name,x=p.value;x&&(w=w.match(/^\:(.*)$/))&&de({childCD:a,name:w[1],parentName:x,parentCD:o})}var k=!1;if(o.watch("$onScanOnce",function(){return k=!0}),c.template&&(n.innerHTML=c.template),c.templateId){if(!(r=document.getElementById(c.templateId)))throw"No template "+c.templateId;n.innerHTML=r.innerHTML}function D(){k||o.digest(),q.bind(a,n,{skip:!0})}c.templateUrl?se.ajax({url:c.templateUrl,cache:!0,success:function(e){n.innerHTML=e,D()},error:function(){console.error("Template is not loaded",c.templateUrl)}}):D()}}},q}var t=e();t.makeInstance=e,"function"==typeof alightInitCallback?alightInitCallback(t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t:(t.option.globalController=!0,(window.alight=t).f$.ready(t.bootstrap))}(); -
mediacommander/trunk/assets/vendor/cookie/cookie.js
r3083414 r3101075 1 !function(){"use strict";var e,n,t,o;e=function(){function f(){for(var e=0,n={};e<arguments.length;e++){var t,o=arguments[e];for(t in o)n[t]=o[t]}return n}function p(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(u){function c(){}function t(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=f({path:"/"},c.defaults,t)).expires&&(t.expires=new Date(+new Date+864e5*t.expires)),t.expires=t.expires?t.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=u.write?u.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r,i="";for(r in t)t[r]&&(i+="; "+r,!0!==t[r])&&(i+="="+t[r].split(";")[0]);return document.cookie=e+"="+n+i}}function n(e,n){if("undefined"!=typeof document){for(var t={},o=document.cookie?document.cookie.split("; "):[],r=0;r<o.length;r++){var i=o[r].split("="),c=i.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var f=p(i[0]),c=(u.read||u)(c,f)||p(c);if(n)try{c=JSON.parse(c)}catch(e){}if(t[f]=c,e===f)break}catch(e){}}return e?t[e]:t}}return c.set=t,c.get=function(e){return n(e,!1)},c.getJSON=function(e){return n(e,!0)},c.remove=function(e,n){t(e,"",f(n,{expires:-1}))},c.defaults={},c.withConverter=e,c}(function(){})},"function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),n||(t=window.Cookies,(o=window.Cookies=e()).noConflict=function(){return window.Cookies=t,o})}(); 1 /* @license 2 JavaScript Cookie v2.2.0 3 https://github.com/js-cookie/js-cookie 4 Released under the MIT license 5 */ 6 !function(){"use strict";var e,n,t,o=function(){function f(){for(var e=0,n={};e<arguments.length;e++){var t,o=arguments[e];for(t in o)n[t]=o[t]}return n}function p(e){return e.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function e(u){function c(){}function t(e,n,t){if("undefined"!=typeof document){"number"==typeof(t=f({path:"/"},c.defaults,t)).expires&&(t.expires=new Date(+new Date+864e5*t.expires)),t.expires=t.expires?t.expires.toUTCString():"";try{var o=JSON.stringify(n);/^[\{\[]/.test(o)&&(n=o)}catch(e){}n=u.write?u.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r,i="";for(r in t)t[r]&&(i+="; "+r,!0!==t[r])&&(i+="="+t[r].split(";")[0]);return document.cookie=e+"="+n+i}}function n(e,n){if("undefined"!=typeof document){for(var t={},o=document.cookie?document.cookie.split("; "):[],r=0;r<o.length;r++){var i=o[r].split("="),c=i.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var f=p(i[0]),c=(u.read||u)(c,f)||p(c);if(n)try{c=JSON.parse(c)}catch(e){}if(t[f]=c,e===f)break}catch(e){}}return e?t[e]:t}}return c.set=t,c.get=function(e){return n(e,!1)},c.getJSON=function(e){return n(e,!0)},c.remove=function(e,n){t(e,"",f(n,{expires:-1}))},c.defaults={},c.withConverter=e,c}(function(){})};"function"==typeof define&&define.amd&&(define(o),e=!0),"object"==typeof exports&&(module.exports=o(),e=!0),e||(n=window.Cookies,(t=window.Cookies=o()).noConflict=function(){return window.Cookies=n,t})}(); -
mediacommander/trunk/assets/vendor/feather-icons/feather.js
r3083414 r3101075 1 !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.feather=n():e.feather=n()}("undefined"!=typeof self?self:this,function(){return o={"./dist/icons.json":function(e){e.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zM11 11V7M16 11V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},"./node_modules/classnames/dedupe.js":function(n,o,e){var t;!function(){"use strict";function e(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];var t,i=new r,l=(m(i,n),[]);for(t in i)i[t]&&l.push(t);return l.join(" ")}var u,x;r.prototype=Object.create(null),u={}.hasOwnProperty,x=/\s+/;function r(){}function m(e,n){for(var o=n.length,t=0;t<o;++t){y=h=d=p=c=s=a=i=r=l=void 0;var i,l=e,r=n[t];if(r)if("string"==(i=typeof r))for(var a=l,s=r.split(x),c=s.length,p=0;p<c;++p)a[s[p]]=!0;else if(Array.isArray(r))m(l,r);else if("object"!=i)"number"==i&&(l[r]=!0);else{var y,d=l,h=r;for(y in h)u.call(h,y)&&(d[y]=!!h[y])}}}void 0!==n&&n.exports?n.exports=e:void 0!==(t=function(){return e}.apply(o,[]))&&(n.exports=t)}()},"./node_modules/core-js/es/array/from.js":function(e,n,o){o("./node_modules/core-js/modules/es.string.iterator.js"),o("./node_modules/core-js/modules/es.array.from.js");o=o("./node_modules/core-js/internals/path.js");e.exports=o.Array.from},"./node_modules/core-js/internals/a-function.js":function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"./node_modules/core-js/internals/an-object.js":function(e,n,o){var t=o("./node_modules/core-js/internals/is-object.js");e.exports=function(e){if(t(e))return e;throw TypeError(String(e)+" is not an object")}},"./node_modules/core-js/internals/array-from.js":function(e,n,o){"use strict";var y=o("./node_modules/core-js/internals/bind-context.js"),d=o("./node_modules/core-js/internals/to-object.js"),h=o("./node_modules/core-js/internals/call-with-safe-iteration-closing.js"),u=o("./node_modules/core-js/internals/is-array-iterator-method.js"),x=o("./node_modules/core-js/internals/to-length.js"),m=o("./node_modules/core-js/internals/create-property.js"),f=o("./node_modules/core-js/internals/get-iterator-method.js");e.exports=function(e){var n,o,t,i,l=d(e),e="function"==typeof this?this:Array,r=arguments.length,a=1<r?arguments[1]:void 0,s=void 0!==a,c=0,p=f(l);if(s&&(a=y(a,2<r?arguments[2]:void 0,2)),null==p||e==Array&&u(p))for(o=new e(n=x(l.length));c<n;c++)m(o,c,s?a(l[c],c):l[c]);else for(i=p.call(l),o=new e;!(t=i.next()).done;c++)m(o,c,s?h(i,a,[t.value,c],!0):t.value);return o.length=c,o}},"./node_modules/core-js/internals/array-includes.js":function(e,n,o){var s=o("./node_modules/core-js/internals/to-indexed-object.js"),c=o("./node_modules/core-js/internals/to-length.js"),p=o("./node_modules/core-js/internals/to-absolute-index.js");e.exports=function(a){return function(e,n,o){var t,i=s(e),l=c(i.length),r=p(o,l);if(a&&n!=n){for(;r<l;)if((t=i[r++])!=t)return!0}else for(;r<l;r++)if((a||r in i)&&i[r]===n)return a||r||0;return!a&&-1}}},"./node_modules/core-js/internals/bind-context.js":function(e,n,o){var l=o("./node_modules/core-js/internals/a-function.js");e.exports=function(t,i,e){if(l(t),void 0===i)return t;switch(e){case 0:return function(){return t.call(i)};case 1:return function(e){return t.call(i,e)};case 2:return function(e,n){return t.call(i,e,n)};case 3:return function(e,n,o){return t.call(i,e,n,o)}}return function(){return t.apply(i,arguments)}}},"./node_modules/core-js/internals/call-with-safe-iteration-closing.js":function(e,n,o){var i=o("./node_modules/core-js/internals/an-object.js");e.exports=function(n,e,o,t){try{return t?e(i(o)[0],o[1]):e(o)}catch(e){t=n.return;throw void 0!==t&&i(t.call(n)),e}}},"./node_modules/core-js/internals/check-correctness-of-iteration.js":function(e,n,o){var i=o("./node_modules/core-js/internals/well-known-symbol.js")("iterator"),l=!1;try{var t=0,r={next:function(){return{done:!!t++}},return:function(){l=!0}};r[i]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}e.exports=function(e,n){if(!n&&!l)return!1;var o=!1;try{var t={};t[i]=function(){return{next:function(){return{done:o=!0}}}},e(t)}catch(e){}return o}},"./node_modules/core-js/internals/classof-raw.js":function(e,n){var o={}.toString;e.exports=function(e){return o.call(e).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(e,n,o){var t=o("./node_modules/core-js/internals/classof-raw.js"),i=o("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag"),l="Arguments"==t(function(){return arguments}());e.exports=function(e){var n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,n){try{return e[n]}catch(e){}}(e=Object(e),i))?n:l?t(e):"Object"==(n=t(e))&&"function"==typeof e.callee?"Arguments":n}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(e,n,o){var a=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/own-keys.js"),c=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),p=o("./node_modules/core-js/internals/object-define-property.js");e.exports=function(e,n){for(var o=s(n),t=p.f,i=c.f,l=0;l<o.length;l++){var r=o[l];a(e,r)||t(e,r,i(n,r))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(e,n,o){o=o("./node_modules/core-js/internals/fails.js");e.exports=!o(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},"./node_modules/core-js/internals/create-iterator-constructor.js":function(e,n,o){"use strict";function t(){return this}var i=o("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=o("./node_modules/core-js/internals/object-create.js"),r=o("./node_modules/core-js/internals/create-property-descriptor.js"),a=o("./node_modules/core-js/internals/set-to-string-tag.js"),s=o("./node_modules/core-js/internals/iterators.js");e.exports=function(e,n,o){n+=" Iterator";return e.prototype=l(i,{next:r(1,o)}),a(e,n,!1,!0),s[n]=t,e}},"./node_modules/core-js/internals/create-property-descriptor.js":function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},"./node_modules/core-js/internals/create-property.js":function(e,n,o){"use strict";var t=o("./node_modules/core-js/internals/to-primitive.js"),i=o("./node_modules/core-js/internals/object-define-property.js"),l=o("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=function(e,n,o){n=t(n);n in e?i.f(e,n,l(0,o)):e[n]=o}},"./node_modules/core-js/internals/define-iterator.js":function(e,n,o){"use strict";function x(){return this}var m=o("./node_modules/core-js/internals/export.js"),f=o("./node_modules/core-js/internals/create-iterator-constructor.js"),j=o("./node_modules/core-js/internals/object-get-prototype-of.js"),g=o("./node_modules/core-js/internals/object-set-prototype-of.js"),v=o("./node_modules/core-js/internals/set-to-string-tag.js"),b=o("./node_modules/core-js/internals/hide.js"),_=o("./node_modules/core-js/internals/redefine.js"),t=o("./node_modules/core-js/internals/well-known-symbol.js"),w=o("./node_modules/core-js/internals/is-pure.js"),M=o("./node_modules/core-js/internals/iterators.js"),o=o("./node_modules/core-js/internals/iterators-core.js"),k=o.IteratorPrototype,z=o.BUGGY_SAFARI_ITERATORS,A=t("iterator"),H="values",V="entries";e.exports=function(e,n,o,t,i,l,r){f(o,n,t);function a(e){if(e===i&&h)return h;if(!z&&e in y)return y[e];switch(e){case"keys":case H:case V:return function(){return new o(this,e)}}return function(){return new o(this)}}var s,c,t=n+" Iterator",p=!1,y=e.prototype,d=y[A]||y["@@iterator"]||i&&y[i],h=!z&&d||a(i),u="Array"==n&&y.entries||d;if(u&&(u=j(u.call(new e)),k!==Object.prototype)&&u.next&&(w||j(u)===k||(g?g(u,k):"function"!=typeof u[A]&&b(u,A,x)),v(u,t,!0,!0),w)&&(M[t]=x),i==H&&d&&d.name!==H&&(p=!0,h=function(){return d.call(this)}),w&&!r||y[A]===h||b(y,A,h),M[n]=h,i)if(s={values:a(H),keys:l?h:a("keys"),entries:a(V)},r)for(c in s)!z&&!p&&c in y||_(y,c,s[c]);else m({target:n,proto:!0,forced:z||p},s);return s}},"./node_modules/core-js/internals/descriptors.js":function(e,n,o){o=o("./node_modules/core-js/internals/fails.js");e.exports=!o(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/document-create-element.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),o=o("./node_modules/core-js/internals/is-object.js"),i=t.document,l=o(i)&&o(i.createElement);e.exports=function(e){return l?i.createElement(e):{}}},"./node_modules/core-js/internals/enum-bug-keys.js":function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(e,n,o){var c=o("./node_modules/core-js/internals/global.js"),p=o("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,y=o("./node_modules/core-js/internals/hide.js"),d=o("./node_modules/core-js/internals/redefine.js"),h=o("./node_modules/core-js/internals/set-global.js"),u=o("./node_modules/core-js/internals/copy-constructor-properties.js"),x=o("./node_modules/core-js/internals/is-forced.js");e.exports=function(e,n){var o,t,i,l=e.target,r=e.global,a=e.stat,s=r?c:a?c[l]||h(l,{}):(c[l]||{}).prototype;if(s)for(o in n){if(t=n[o],i=e.noTargetGet?(i=p(s,o))&&i.value:s[o],!x(r?o:l+(a?".":"#")+o,e.forced)&&void 0!==i){if(typeof t==typeof i)continue;u(t,i)}(e.sham||i&&i.sham)&&y(t,"sham",!0),d(s,o,t,e)}}},"./node_modules/core-js/internals/fails.js":function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"./node_modules/core-js/internals/function-to-string.js":function(e,n,o){o=o("./node_modules/core-js/internals/shared.js");e.exports=o("native-function-to-string",Function.toString)},"./node_modules/core-js/internals/get-iterator-method.js":function(e,n,o){var t=o("./node_modules/core-js/internals/classof.js"),i=o("./node_modules/core-js/internals/iterators.js"),l=o("./node_modules/core-js/internals/well-known-symbol.js")("iterator");e.exports=function(e){if(null!=e)return e[l]||e["@@iterator"]||i[t(e)]}},"./node_modules/core-js/internals/global.js":function(t,e,n){!function(e){function n(e){return e&&e.Math==Math&&e}var o="object";t.exports=n(typeof globalThis==o&&globalThis)||n(typeof window==o&&window)||n(typeof self==o&&self)||n(typeof e==o&&e)||Function("return this")()}.call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/core-js/internals/has.js":function(e,n){var o={}.hasOwnProperty;e.exports=function(e,n){return o.call(e,n)}},"./node_modules/core-js/internals/hidden-keys.js":function(e,n){e.exports={}},"./node_modules/core-js/internals/hide.js":function(e,n,o){var t=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-define-property.js"),l=o("./node_modules/core-js/internals/create-property-descriptor.js");e.exports=t?function(e,n,o){return i.f(e,n,l(1,o))}:function(e,n,o){return e[n]=o,e}},"./node_modules/core-js/internals/html.js":function(e,n,o){o=o("./node_modules/core-js/internals/global.js").document;e.exports=o&&o.documentElement},"./node_modules/core-js/internals/ie8-dom-define.js":function(e,n,o){var t=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/fails.js"),l=o("./node_modules/core-js/internals/document-create-element.js");e.exports=!t&&!i(function(){return 7!=Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a})},"./node_modules/core-js/internals/indexed-object.js":function(e,n,o){var t=o("./node_modules/core-js/internals/fails.js"),i=o("./node_modules/core-js/internals/classof-raw.js"),l="".split;e.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?l.call(e,""):Object(e)}:Object},"./node_modules/core-js/internals/internal-state.js":function(e,n,o){var t,i,l,r,a,s,c,p,y=o("./node_modules/core-js/internals/native-weak-map.js"),d=o("./node_modules/core-js/internals/global.js"),h=o("./node_modules/core-js/internals/is-object.js"),u=o("./node_modules/core-js/internals/hide.js"),x=o("./node_modules/core-js/internals/has.js"),m=o("./node_modules/core-js/internals/shared-key.js"),o=o("./node_modules/core-js/internals/hidden-keys.js"),d=d.WeakMap;c=y?(t=new d,i=t.get,l=t.has,r=t.set,a=function(e,n){return r.call(t,e,n),n},s=function(e){return i.call(t,e)||{}},function(e){return l.call(t,e)}):(o[p=m("state")]=!0,a=function(e,n){return u(e,p,n),n},s=function(e){return x(e,p)?e[p]:{}},function(e){return x(e,p)}),e.exports={set:a,get:s,has:c,enforce:function(e){return c(e)?s(e):a(e,{})},getterFor:function(n){return function(e){if(h(e)&&(e=s(e)).type===n)return e;throw TypeError("Incompatible receiver, "+n+" required")}}}},"./node_modules/core-js/internals/is-array-iterator-method.js":function(e,n,o){var t=o("./node_modules/core-js/internals/well-known-symbol.js"),i=o("./node_modules/core-js/internals/iterators.js"),l=t("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||r[l]===e)}},"./node_modules/core-js/internals/is-forced.js":function(e,n,o){function t(e,n){return(e=a[r(e)])==c||e!=s&&("function"==typeof n?i(n):!!n)}var i=o("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,r=t.normalize=function(e){return String(e).replace(l,".").toLowerCase()},a=t.data={},s=t.NATIVE="N",c=t.POLYFILL="P";e.exports=t},"./node_modules/core-js/internals/is-object.js":function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},"./node_modules/core-js/internals/is-pure.js":function(e,n){e.exports=!1},"./node_modules/core-js/internals/iterators-core.js":function(e,n,o){"use strict";var t,i,l=o("./node_modules/core-js/internals/object-get-prototype-of.js"),r=o("./node_modules/core-js/internals/hide.js"),a=o("./node_modules/core-js/internals/has.js"),s=o("./node_modules/core-js/internals/well-known-symbol.js"),o=o("./node_modules/core-js/internals/is-pure.js"),s=s("iterator"),c=!1;[].keys&&("next"in(i=[].keys())?(l=l(l(i)))!==Object.prototype&&(t=l):c=!0),null==t&&(t={}),o||a(t,s)||r(t,s,function(){return this}),e.exports={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:c}},"./node_modules/core-js/internals/iterators.js":function(e,n){e.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(e,n,o){o=o("./node_modules/core-js/internals/fails.js");e.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"./node_modules/core-js/internals/native-weak-map.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),o=o("./node_modules/core-js/internals/function-to-string.js"),t=t.WeakMap;e.exports="function"==typeof t&&/native code/.test(o.call(t))},"./node_modules/core-js/internals/object-create.js":function(e,n,o){function t(){}var i=o("./node_modules/core-js/internals/an-object.js"),l=o("./node_modules/core-js/internals/object-define-properties.js"),r=o("./node_modules/core-js/internals/enum-bug-keys.js"),a=o("./node_modules/core-js/internals/hidden-keys.js"),s=o("./node_modules/core-js/internals/html.js"),c=o("./node_modules/core-js/internals/document-create-element.js"),p=o("./node_modules/core-js/internals/shared-key.js")("IE_PROTO"),y="prototype",d=function(){var e=c("iframe"),n=r.length;for(e.style.display="none",s.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),d=e.F;n--;)delete d[y][r[n]];return d()};e.exports=Object.create||function(e,n){var o;return null!==e?(t[y]=i(e),o=new t,t[y]=null,o[p]=e):o=d(),void 0===n?o:l(o,n)},a[p]=!0},"./node_modules/core-js/internals/object-define-properties.js":function(e,n,o){var t=o("./node_modules/core-js/internals/descriptors.js"),r=o("./node_modules/core-js/internals/object-define-property.js"),a=o("./node_modules/core-js/internals/an-object.js"),s=o("./node_modules/core-js/internals/object-keys.js");e.exports=t?Object.defineProperties:function(e,n){a(e);for(var o,t=s(n),i=t.length,l=0;l<i;)r.f(e,o=t[l++],n[o]);return e}},"./node_modules/core-js/internals/object-define-property.js":function(e,n,o){var t=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/ie8-dom-define.js"),l=o("./node_modules/core-js/internals/an-object.js"),r=o("./node_modules/core-js/internals/to-primitive.js"),a=Object.defineProperty;n.f=t?a:function(e,n,o){if(l(e),n=r(n,!0),l(o),i)try{return a(e,n,o)}catch(e){}if("get"in o||"set"in o)throw TypeError("Accessors not supported");return"value"in o&&(e[n]=o.value),e}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(e,n,o){var t=o("./node_modules/core-js/internals/descriptors.js"),i=o("./node_modules/core-js/internals/object-property-is-enumerable.js"),l=o("./node_modules/core-js/internals/create-property-descriptor.js"),r=o("./node_modules/core-js/internals/to-indexed-object.js"),a=o("./node_modules/core-js/internals/to-primitive.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;n.f=t?p:function(e,n){if(e=r(e),n=a(n,!0),c)try{return p(e,n)}catch(e){}if(s(e,n))return l(!i.f.call(e,n),e[n])}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(e,n,o){var t=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return t(e,i)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(e,n){n.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(e,n,o){var t=o("./node_modules/core-js/internals/has.js"),i=o("./node_modules/core-js/internals/to-object.js"),l=o("./node_modules/core-js/internals/shared-key.js"),o=o("./node_modules/core-js/internals/correct-prototype-getter.js"),r=l("IE_PROTO"),a=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),t(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(e,n,o){var r=o("./node_modules/core-js/internals/has.js"),a=o("./node_modules/core-js/internals/to-indexed-object.js"),t=o("./node_modules/core-js/internals/array-includes.js"),s=o("./node_modules/core-js/internals/hidden-keys.js"),c=t(!1);e.exports=function(e,n){var o,t=a(e),i=0,l=[];for(o in t)!r(s,o)&&r(t,o)&&l.push(o);for(;n.length>i;)!r(t,o=n[i++])||~c(l,o)||l.push(o);return l}},"./node_modules/core-js/internals/object-keys.js":function(e,n,o){var t=o("./node_modules/core-js/internals/object-keys-internal.js"),i=o("./node_modules/core-js/internals/enum-bug-keys.js");e.exports=Object.keys||function(e){return t(e,i)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(e,n,o){"use strict";var t={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,l=i&&!t.call({1:2},1);n.f=l?function(e){e=i(this,e);return!!e&&e.enumerable}:t},"./node_modules/core-js/internals/object-set-prototype-of.js":function(e,n,o){var i=o("./node_modules/core-js/internals/validate-set-prototype-of-arguments.js");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o,t=!1,e={};try{(o=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),t=e instanceof Array}catch(e){}return function(e,n){return i(e,n),t?o.call(e,n):e.__proto__=n,e}}():void 0)},"./node_modules/core-js/internals/own-keys.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/object-get-own-property-names.js"),l=o("./node_modules/core-js/internals/object-get-own-property-symbols.js"),r=o("./node_modules/core-js/internals/an-object.js"),o=t.Reflect;e.exports=o&&o.ownKeys||function(e){var n=i.f(r(e)),o=l.f;return o?n.concat(o(e)):n}},"./node_modules/core-js/internals/path.js":function(e,n,o){e.exports=o("./node_modules/core-js/internals/global.js")},"./node_modules/core-js/internals/redefine.js":function(e,n,o){var r=o("./node_modules/core-js/internals/global.js"),t=o("./node_modules/core-js/internals/shared.js"),a=o("./node_modules/core-js/internals/hide.js"),s=o("./node_modules/core-js/internals/has.js"),c=o("./node_modules/core-js/internals/set-global.js"),i=o("./node_modules/core-js/internals/function-to-string.js"),o=o("./node_modules/core-js/internals/internal-state.js"),l=o.get,p=o.enforce,y=String(i).split("toString");t("inspectSource",function(e){return i.call(e)}),(e.exports=function(e,n,o,t){var i=!!t&&!!t.unsafe,l=!!t&&!!t.enumerable,t=!!t&&!!t.noTargetGet;"function"==typeof o&&("string"!=typeof n||s(o,"name")||a(o,"name",n),p(o).source=y.join("string"==typeof n?n:"")),e===r?l?e[n]=o:c(n,o):(i?!t&&e[n]&&(l=!0):delete e[n],l?e[n]=o:a(e,n,o))})(Function.prototype,"toString",function(){return"function"==typeof this&&l(this).source||i.call(this)})},"./node_modules/core-js/internals/require-object-coercible.js":function(e,n){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},"./node_modules/core-js/internals/set-global.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/hide.js");e.exports=function(n,o){try{i(t,n,o)}catch(e){t[n]=o}return o}},"./node_modules/core-js/internals/set-to-string-tag.js":function(e,n,o){var t=o("./node_modules/core-js/internals/object-define-property.js").f,i=o("./node_modules/core-js/internals/has.js"),l=o("./node_modules/core-js/internals/well-known-symbol.js")("toStringTag");e.exports=function(e,n,o){e&&!i(e=o?e:e.prototype,l)&&t(e,l,{configurable:!0,value:n})}},"./node_modules/core-js/internals/shared-key.js":function(e,n,o){var t=o("./node_modules/core-js/internals/shared.js"),i=o("./node_modules/core-js/internals/uid.js"),l=t("keys");e.exports=function(e){return l[e]||(l[e]=i(e))}},"./node_modules/core-js/internals/shared.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/set-global.js"),o=o("./node_modules/core-js/internals/is-pure.js"),l="__core-js_shared__",r=t[l]||i(l,{});(e.exports=function(e,n){return r[e]||(r[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:o?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-at.js":function(e,n,o){var l=o("./node_modules/core-js/internals/to-integer.js"),r=o("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e,n,o){var t,e=String(r(e)),n=l(n),i=e.length;return n<0||i<=n?o?"":void 0:(t=e.charCodeAt(n))<55296||56319<t||n+1===i||(i=e.charCodeAt(n+1))<56320||57343<i?o?e.charAt(n):t:o?e.slice(n,n+2):i-56320+(t-55296<<10)+65536}},"./node_modules/core-js/internals/to-absolute-index.js":function(e,n,o){var t=o("./node_modules/core-js/internals/to-integer.js"),i=Math.max,l=Math.min;e.exports=function(e,n){e=t(e);return e<0?i(e+n,0):l(e,n)}},"./node_modules/core-js/internals/to-indexed-object.js":function(e,n,o){var t=o("./node_modules/core-js/internals/indexed-object.js"),i=o("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return t(i(e))}},"./node_modules/core-js/internals/to-integer.js":function(e,n){var o=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?t:o)(e)}},"./node_modules/core-js/internals/to-length.js":function(e,n,o){var t=o("./node_modules/core-js/internals/to-integer.js"),i=Math.min;e.exports=function(e){return 0<e?i(t(e),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(e,n,o){var t=o("./node_modules/core-js/internals/require-object-coercible.js");e.exports=function(e){return Object(t(e))}},"./node_modules/core-js/internals/to-primitive.js":function(e,n,o){var i=o("./node_modules/core-js/internals/is-object.js");e.exports=function(e,n){if(!i(e))return e;var o,t;if(n&&"function"==typeof(o=e.toString)&&!i(t=o.call(e))||"function"==typeof(o=e.valueOf)&&!i(t=o.call(e))||!n&&"function"==typeof(o=e.toString)&&!i(t=o.call(e)))return t;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/uid.js":function(e,n){var o=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++o+t).toString(36))}},"./node_modules/core-js/internals/validate-set-prototype-of-arguments.js":function(e,n,o){var t=o("./node_modules/core-js/internals/is-object.js"),i=o("./node_modules/core-js/internals/an-object.js");e.exports=function(e,n){if(i(e),!t(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype")}},"./node_modules/core-js/internals/well-known-symbol.js":function(e,n,o){var t=o("./node_modules/core-js/internals/global.js"),i=o("./node_modules/core-js/internals/shared.js"),l=o("./node_modules/core-js/internals/uid.js"),r=o("./node_modules/core-js/internals/native-symbol.js"),a=t.Symbol,s=i("wks");e.exports=function(e){return s[e]||(s[e]=r&&a[e]||(r?a:l)("Symbol."+e))}},"./node_modules/core-js/modules/es.array.from.js":function(e,n,o){var t=o("./node_modules/core-js/internals/export.js"),i=o("./node_modules/core-js/internals/array-from.js");t({target:"Array",stat:!0,forced:!o("./node_modules/core-js/internals/check-correctness-of-iteration.js")(function(e){Array.from(e)})},{from:i})},"./node_modules/core-js/modules/es.string.iterator.js":function(e,n,o){"use strict";var t=o("./node_modules/core-js/internals/string-at.js"),i=o("./node_modules/core-js/internals/internal-state.js"),o=o("./node_modules/core-js/internals/define-iterator.js"),l="String Iterator",r=i.set,a=i.getterFor(l);o(String,"String",function(e){r(this,{type:l,string:String(e),index:0})},function(){var e=a(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(n=t(n,o,!0),e.index+=n.length,{value:n,done:!1})})},"./node_modules/webpack/buildin/global.js":function(e,n){var o=function(){return this}();try{o=o||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(o=window)}e.exports=o},"./src/default-attrs.json":function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},"./src/icon.js":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var o,t=arguments[n];for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},t=function(e,n,o){return n&&i(e.prototype,n),o&&i(e,o),e};function i(e,n){for(var o=0;o<n.length;o++){var t=n[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}var r=s(o("./node_modules/classnames/dedupe.js")),a=s(o("./src/default-attrs.json"));function s(e){return e&&e.__esModule?e:{default:e}}t(c,[{key:"toSvg",value:function(){var n,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=l({},this.attrs,e,{class:(0,r.default)(this.attrs.class,e.class)});return"<svg "+(n=e,Object.keys(n).map(function(e){return e+'="'+n[e]+'"'}).join(" "))+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}]);o=c;function c(e,n){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],t=this,i=c;if(!(t instanceof i))throw new TypeError("Cannot call a class as a function");this.name=e,this.contents=n,this.tags=o,this.attrs=l({},a.default,{class:"feather feather-"+e})}n.default=o},"./src/icons.js":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=r(o("./src/icon.js")),i=r(o("./dist/icons.json")),l=r(o("./src/tags.json"));function r(e){return e&&e.__esModule?e:{default:e}}n.default=Object.keys(i.default).map(function(e){return new t.default(e,i.default[e],l.default[e])}).reduce(function(e,n){return e[n.name]=n,e},{})},"./src/index.js":function(e,n,o){"use strict";var t=l(o("./src/icons.js")),i=l(o("./src/to-svg.js")),o=l(o("./src/replace.js"));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={icons:t.default,toSvg:i.default,replace:o.default}},"./src/replace.js":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var o,t=arguments[n];for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},l=t(o("./node_modules/classnames/dedupe.js")),r=t(o("./src/icons.js"));function t(e){return e&&e.__esModule?e:{default:e}}n.default=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var e=document.querySelectorAll("[data-feather]");Array.from(e).forEach(function(e){return function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=function(e){return Array.from(e.attributes).reduce(function(e,n){return e[n.name]=n.value,e},{})}(e),t=o["data-feather"],t=(delete o["data-feather"],r.default[t].toSvg(i({},n,o,{class:(0,l.default)(n.class,o.class)}))),n=(new DOMParser).parseFromString(t,"image/svg+xml").querySelector("svg");e.parentNode.replaceChild(n,e)}(e,n)})}},"./src/tags.json":function(e){e.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},"./src/to-svg.js":function(e,n,o){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=o("./src/icons.js"),t=(o=o)&&o.__esModule?o:{default:o};n.default=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!e)throw new Error("The required `key` (icon name) parameter is missing.");if(t.default[e])return t.default[e].toSvg(n);throw new Error("No icon matching '"+e+"'. See the complete list of icons at https://feathericons.com")}},0:function(e,n,o){o("./node_modules/core-js/es/array/from.js"),e.exports=o("./src/index.js")}},i={},t.m=o,t.c=i,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=0);function t(e){var n;return(i[e]||(n=i[e]={i:e,l:!1,exports:{}},o[e].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}var o,i}); 1 /* @license 2 Feather Icons v4.29.2 3 https://github.com/feathericons/feather 4 Released under the MIT license 5 */ 6 !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.feather=n():e.feather=n()}("undefined"!=typeof self?self:this,function(){return i=[function(t,e,n){!function(e){function n(e){return e&&e.Math==Math&&e}var i="object";t.exports=n(typeof globalThis==i&&globalThis)||n(typeof window==i&&window)||n(typeof self==i&&self)||n(typeof e==i&&e)||Function("return this")()}.call(this,n(75))},function(e,n){var i={}.hasOwnProperty;e.exports=function(e,n){return i.call(e,n)}},function(e,n,i){var t=i(0),l=i(11),r=i(33),o=i(62),a=t.Symbol,c=l("wks");e.exports=function(e){return c[e]||(c[e]=o&&a[e]||(o?a:r)("Symbol."+e))}},function(e,n,i){var t=i(6);e.exports=function(e){if(t(e))return e;throw TypeError(String(e)+" is not an object")}},function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,n,i){var t=i(8),l=i(7),r=i(10);e.exports=t?function(e,n,i){return l.f(e,n,r(1,i))}:function(e,n,i){return e[n]=i,e}},function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,n,i){var t=i(8),l=i(35),r=i(3),o=i(18),a=Object.defineProperty;n.f=t?a:function(e,n,i){if(r(e),n=o(n,!0),r(i),l)try{return a(e,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");return"value"in i&&(e[n]=i.value),e}},function(e,n,i){i=i(4),e.exports=!i(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,n){e.exports={}},function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},function(e,n,i){var t=i(0),l=i(19),i=i(17),r=t["__core-js_shared__"]||l("__core-js_shared__",{});(e.exports=function(e,n){return r[e]||(r[e]=void 0!==n?n:{})})("versions",[]).push({version:"3.1.3",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=o(i(43)),l=o(i(41)),r=o(i(40));function o(e){return e&&e.__esModule?e:{default:e}}n.default=Object.keys(l.default).map(function(e){return new t.default(e,l.default[e],r.default[e])}).reduce(function(e,n){return e[n.name]=n,e},{})},function(e,n){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,n,i){var t=i(72),l=i(20);e.exports=function(e){return t(l(e))}},function(e,n){e.exports={}},function(e,n,i){var t=i(11),l=i(33),r=t("keys");e.exports=function(e){return r[e]||(r[e]=l(e))}},function(e,n){e.exports=!1},function(e,n,i){var l=i(6);e.exports=function(e,n){if(!l(e))return e;var i,t;if(n&&"function"==typeof(i=e.toString)&&!l(t=i.call(e))||"function"==typeof(i=e.valueOf)&&!l(t=i.call(e))||!n&&"function"==typeof(i=e.toString)&&!l(t=i.call(e)))return t;throw TypeError("Can't convert object to primitive value")}},function(e,n,i){var t=i(0),l=i(5);e.exports=function(n,i){try{l(t,n,i)}catch(e){t[n]=i}return i}},function(e,n){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,n){var i=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?t:i)(e)}},function(n,i,e){var t;!function(){"use strict";function e(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];var t,l=new o,r=(function e(n,i){for(var t,l=i.length,r=0;r<l;++r){t=a=o=void 0;var o=n,a=i[r];a&&("string"==(t=typeof a)?function(e){for(var n=a.split(p),i=n.length,t=0;t<i;++t)e[n[t]]=!0}(o):Array.isArray(a)?e(o,a):"object"==t?function(e,n){for(var i in n)c.call(n,i)&&(e[i]=!!n[i])}(o,a):"number"==t&&(o[a]=!0))}}(l,n),[]);for(t in l)l[t]&&r.push(t);return r.join(" ")}var c,p;function o(){}o.prototype=Object.create(null),c={}.hasOwnProperty,p=/\s+/,void 0!==n&&n.exports?n.exports=e:void 0!==(t=function(){return e}.apply(i,[]))&&(n.exports=t)}()},function(e,n,i){var t=i(7).f,l=i(1),r=i(2)("toStringTag");e.exports=function(e,n,i){e&&!l(e=i?e:e.prototype,r)&&t(e,r,{configurable:!0,value:n})}},function(e,n,i){var t=i(20);e.exports=function(e){return Object(t(e))}},function(e,n,i){var t=i(1),l=i(24),r=i(16),i=i(63),o=r("IE_PROTO"),a=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=l(e),t(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,n,i){"use strict";var t,l,r=i(25),o=i(5),a=i(1),c=i(2),i=i(17),c=c("iterator"),p=!1;[].keys&&("next"in(l=[].keys())?(r=r(r(l)))!==Object.prototype&&(t=r):p=!0),null==t&&(t={}),i||a(t,c)||o(t,c,function(){return this}),e.exports={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:p}},function(e,n,i){var t=i(21),l=Math.min;e.exports=function(e){return 0<e?l(t(e),9007199254740991):0}},function(e,n,i){var o=i(1),a=i(14),t=i(68),c=i(15),p=t(!1);e.exports=function(e,n){var i,t=a(e),l=0,r=[];for(i in t)!o(c,i)&&o(t,i)&&r.push(i);for(;n.length>l;)o(t,i=n[l++])&&!~p(r,i)&&r.push(i);return r}},function(e,n,i){var o=i(0),t=i(11),a=i(5),c=i(1),p=i(19),l=i(36),r=(i=i(37)).get,y=i.enforce,h=String(l).split("toString");t("inspectSource",function(e){return l.call(e)}),(e.exports=function(e,n,i,t){var l=!!t&&!!t.unsafe,r=!!t&&!!t.enumerable,t=!!t&&!!t.noTargetGet;"function"==typeof i&&("string"!=typeof n||c(i,"name")||a(i,"name",n),y(i).source=h.join("string"==typeof n?n:"")),e!==o?(l?!t&&e[n]&&(r=!0):delete e[n],r?e[n]=i:a(e,n,i)):r?e[n]=i:p(n,i)})(Function.prototype,"toString",function(){return"function"==typeof this&&r(this).source||l.call(this)})},function(e,n){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,n,i){var t=i(8),l=i(73),r=i(10),o=i(14),a=i(18),c=i(1),p=i(35),y=Object.getOwnPropertyDescriptor;n.f=t?y:function(e,n){if(e=o(e),n=a(n,!0),p)try{return y(e,n)}catch(e){}if(c(e,n))return r(!l.f.call(e,n),e[n])}},function(e,n,i){var p=i(0),y=i(31).f,h=i(5),x=i(29),s=i(19),u=i(71),d=i(65);e.exports=function(e,n){var i,t,l,r,o=e.target,a=e.global,c=e.stat;if(i=a?p:c?p[o]||s(o,{}):(p[o]||{}).prototype)for(t in n){if(l=n[t],r=e.noTargetGet?(r=y(i,t))&&r.value:i[t],!d(a?t:o+(c?".":"#")+t,e.forced)&&void 0!==r){if(typeof l==typeof r)continue;u(l,r)}(e.sham||r&&r.sham)&&h(l,"sham",!0),x(i,t,l,e)}}},function(e,n){var i=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+t).toString(36))}},function(e,n,i){var t=i(0),i=i(6),l=t.document,r=i(l)&&i(l.createElement);e.exports=function(e){return r?l.createElement(e):{}}},function(e,n,i){var t=i(8),l=i(4),r=i(34);e.exports=!t&&!l(function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})},function(e,n,i){i=i(11),e.exports=i("native-function-to-string",Function.toString)},function(e,n,i){var t,l,r,o,a,c,p,y=i(76),h=i(0),x=i(6),s=i(5),u=i(1),d=i(16),i=i(15),h=h.WeakMap,f=y?(t=new h,l=t.get,r=t.has,o=t.set,a=function(e,n){return o.call(t,e,n),n},c=function(e){return l.call(t,e)||{}},function(e){return r.call(t,e)}):(i[p=d("state")]=!0,a=function(e,n){return s(e,p,n),n},c=function(e){return u(e,p)?e[p]:{}},function(e){return u(e,p)});e.exports={set:a,get:c,has:f,enforce:function(e){return f(e)?c(e):a(e,{})},getterFor:function(n){return function(e){if(x(e)&&(e=c(e)).type===n)return e;throw TypeError("Incompatible receiver, "+n+" required")}}}},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i,t=arguments[n];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r=t(i(22)),o=t(i(12));function t(e){return e&&e.__esModule?e:{default:e}}n.default=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`feather.replace()` only works in a browser environment.");var e=document.querySelectorAll("[data-feather]");Array.from(e).forEach(function(e){return function(e,n){var n=1<arguments.length&&void 0!==n?n:{},i=Array.from(e.attributes).reduce(function(e,n){return e[n.name]=n.value,e},{}),t=i["data-feather"];delete i["data-feather"],void 0!==o.default[t]?(n=o.default[t].toSvg(l({},n,i,{class:(0,r.default)(n.class,i.class)})),i=(new DOMParser).parseFromString(n,"image/svg+xml").querySelector("svg"),e.parentNode.replaceChild(i,e)):console.warn("feather: '"+t+"' is not a valid icon")}(e,n)})}},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=(i=i(12))&&i.__esModule?i:{default:i};n.default=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(console.warn("feather.toSvg() is deprecated. Please use feather.icons[name].toSvg() instead."),!e)throw new Error("The required `key` (icon name) parameter is missing.");if(t.default[e])return t.default[e].toSvg(n);throw new Error("No icon matching '"+e+"'. See the complete list of icons at https://feathericons.com")}},function(e){e.exports={activity:["pulse","health","action","motion"],airplay:["stream","cast","mirroring"],"alert-circle":["warning","alert","danger"],"alert-octagon":["warning","alert","danger"],"alert-triangle":["warning","alert","danger"],"align-center":["text alignment","center"],"align-justify":["text alignment","justified"],"align-left":["text alignment","left"],"align-right":["text alignment","right"],anchor:[],archive:["index","box"],"at-sign":["mention","at","email","message"],award:["achievement","badge"],aperture:["camera","photo"],"bar-chart":["statistics","diagram","graph"],"bar-chart-2":["statistics","diagram","graph"],battery:["power","electricity"],"battery-charging":["power","electricity"],bell:["alarm","notification","sound"],"bell-off":["alarm","notification","silent"],bluetooth:["wireless"],"book-open":["read","library"],book:["read","dictionary","booklet","magazine","library"],bookmark:["read","clip","marker","tag"],box:["cube"],briefcase:["work","bag","baggage","folder"],calendar:["date"],camera:["photo"],cast:["chromecast","airplay"],"chevron-down":["expand"],"chevron-up":["collapse"],circle:["off","zero","record"],clipboard:["copy"],clock:["time","watch","alarm"],"cloud-drizzle":["weather","shower"],"cloud-lightning":["weather","bolt"],"cloud-rain":["weather"],"cloud-snow":["weather","blizzard"],cloud:["weather"],codepen:["logo"],codesandbox:["logo"],code:["source","programming"],coffee:["drink","cup","mug","tea","cafe","hot","beverage"],columns:["layout"],command:["keyboard","cmd","terminal","prompt"],compass:["navigation","safari","travel","direction"],copy:["clone","duplicate"],"corner-down-left":["arrow","return"],"corner-down-right":["arrow"],"corner-left-down":["arrow"],"corner-left-up":["arrow"],"corner-right-down":["arrow"],"corner-right-up":["arrow"],"corner-up-left":["arrow"],"corner-up-right":["arrow"],cpu:["processor","technology"],"credit-card":["purchase","payment","cc"],crop:["photo","image"],crosshair:["aim","target"],database:["storage","memory"],delete:["remove"],disc:["album","cd","dvd","music"],"dollar-sign":["currency","money","payment"],droplet:["water"],edit:["pencil","change"],"edit-2":["pencil","change"],"edit-3":["pencil","change"],eye:["view","watch"],"eye-off":["view","watch","hide","hidden"],"external-link":["outbound"],facebook:["logo","social"],"fast-forward":["music"],figma:["logo","design","tool"],"file-minus":["delete","remove","erase"],"file-plus":["add","create","new"],"file-text":["data","txt","pdf"],film:["movie","video"],filter:["funnel","hopper"],flag:["report"],"folder-minus":["directory"],"folder-plus":["directory"],folder:["directory"],framer:["logo","design","tool"],frown:["emoji","face","bad","sad","emotion"],gift:["present","box","birthday","party"],"git-branch":["code","version control"],"git-commit":["code","version control"],"git-merge":["code","version control"],"git-pull-request":["code","version control"],github:["logo","version control"],gitlab:["logo","version control"],globe:["world","browser","language","translate"],"hard-drive":["computer","server","memory","data"],hash:["hashtag","number","pound"],headphones:["music","audio","sound"],heart:["like","love","emotion"],"help-circle":["question mark"],hexagon:["shape","node.js","logo"],home:["house","living"],image:["picture"],inbox:["email"],instagram:["logo","camera"],key:["password","login","authentication","secure"],layers:["stack"],layout:["window","webpage"],"life-buoy":["help","life ring","support"],link:["chain","url"],"link-2":["chain","url"],linkedin:["logo","social media"],list:["options"],lock:["security","password","secure"],"log-in":["sign in","arrow","enter"],"log-out":["sign out","arrow","exit"],mail:["email","message"],"map-pin":["location","navigation","travel","marker"],map:["location","navigation","travel"],maximize:["fullscreen"],"maximize-2":["fullscreen","arrows","expand"],meh:["emoji","face","neutral","emotion"],menu:["bars","navigation","hamburger"],"message-circle":["comment","chat"],"message-square":["comment","chat"],"mic-off":["record","sound","mute"],mic:["record","sound","listen"],minimize:["exit fullscreen","close"],"minimize-2":["exit fullscreen","arrows","close"],minus:["subtract"],monitor:["tv","screen","display"],moon:["dark","night"],"more-horizontal":["ellipsis"],"more-vertical":["ellipsis"],"mouse-pointer":["arrow","cursor"],move:["arrows"],music:["note"],navigation:["location","travel"],"navigation-2":["location","travel"],octagon:["stop"],package:["box","container"],paperclip:["attachment"],pause:["music","stop"],"pause-circle":["music","audio","stop"],"pen-tool":["vector","drawing"],percent:["discount"],"phone-call":["ring"],"phone-forwarded":["call"],"phone-incoming":["call"],"phone-missed":["call"],"phone-off":["call","mute"],"phone-outgoing":["call"],phone:["call"],play:["music","start"],"pie-chart":["statistics","diagram"],"play-circle":["music","start"],plus:["add","new"],"plus-circle":["add","new"],"plus-square":["add","new"],pocket:["logo","save"],power:["on","off"],printer:["fax","office","device"],radio:["signal"],"refresh-cw":["synchronise","arrows"],"refresh-ccw":["arrows"],repeat:["loop","arrows"],rewind:["music"],"rotate-ccw":["arrow"],"rotate-cw":["arrow"],rss:["feed","subscribe"],save:["floppy disk"],scissors:["cut"],search:["find","magnifier","magnifying glass"],send:["message","mail","email","paper airplane","paper aeroplane"],settings:["cog","edit","gear","preferences"],"share-2":["network","connections"],shield:["security","secure"],"shield-off":["security","insecure"],"shopping-bag":["ecommerce","cart","purchase","store"],"shopping-cart":["ecommerce","cart","purchase","store"],shuffle:["music"],"skip-back":["music"],"skip-forward":["music"],slack:["logo"],slash:["ban","no"],sliders:["settings","controls"],smartphone:["cellphone","device"],smile:["emoji","face","happy","good","emotion"],speaker:["audio","music"],star:["bookmark","favorite","like"],"stop-circle":["media","music"],sun:["brightness","weather","light"],sunrise:["weather","time","morning","day"],sunset:["weather","time","evening","night"],tablet:["device"],tag:["label"],target:["logo","bullseye"],terminal:["code","command line","prompt"],thermometer:["temperature","celsius","fahrenheit","weather"],"thumbs-down":["dislike","bad","emotion"],"thumbs-up":["like","good","emotion"],"toggle-left":["on","off","switch"],"toggle-right":["on","off","switch"],tool:["settings","spanner"],trash:["garbage","delete","remove","bin"],"trash-2":["garbage","delete","remove","bin"],triangle:["delta"],truck:["delivery","van","shipping","transport","lorry"],tv:["television","stream"],twitch:["logo"],twitter:["logo","social"],type:["text"],umbrella:["rain","weather"],unlock:["security"],"user-check":["followed","subscribed"],"user-minus":["delete","remove","unfollow","unsubscribe"],"user-plus":["new","add","create","follow","subscribe"],"user-x":["delete","remove","unfollow","unsubscribe","unavailable"],user:["person","account"],users:["group"],"video-off":["camera","movie","film"],video:["camera","movie","film"],voicemail:["phone"],volume:["music","sound","mute"],"volume-1":["music","sound"],"volume-2":["music","sound"],"volume-x":["music","sound","mute"],watch:["clock","time"],"wifi-off":["disabled"],wifi:["connection","signal","wireless"],wind:["weather","air"],"x-circle":["cancel","close","delete","remove","times","clear"],"x-octagon":["delete","stop","alert","warning","times","clear"],"x-square":["cancel","close","delete","remove","times","clear"],x:["cancel","close","delete","remove","times","clear"],youtube:["logo","video","play"],"zap-off":["flash","camera","lightning"],zap:["flash","camera","lightning"],"zoom-in":["magnifying glass"],"zoom-out":["magnifying glass"]}},function(e){e.exports={activity:'<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>',airplay:'<path d="M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1"></path><polygon points="12 15 17 21 7 21 12 15"></polygon>',"alert-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line>',"alert-triangle":'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path><line x1="12" y1="9" x2="12" y2="13"></line><line x1="12" y1="17" x2="12.01" y2="17"></line>',"align-center":'<line x1="18" y1="10" x2="6" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="18" y1="18" x2="6" y2="18"></line>',"align-justify":'<line x1="21" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="3" y2="18"></line>',"align-left":'<line x1="17" y1="10" x2="3" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="17" y1="18" x2="3" y2="18"></line>',"align-right":'<line x1="21" y1="10" x2="7" y2="10"></line><line x1="21" y1="6" x2="3" y2="6"></line><line x1="21" y1="14" x2="3" y2="14"></line><line x1="21" y1="18" x2="7" y2="18"></line>',anchor:'<circle cx="12" cy="5" r="3"></circle><line x1="12" y1="22" x2="12" y2="8"></line><path d="M5 12H2a10 10 0 0 0 20 0h-3"></path>',aperture:'<circle cx="12" cy="12" r="10"></circle><line x1="14.31" y1="8" x2="20.05" y2="17.94"></line><line x1="9.69" y1="8" x2="21.17" y2="8"></line><line x1="7.38" y1="12" x2="13.12" y2="2.06"></line><line x1="9.69" y1="16" x2="3.95" y2="6.06"></line><line x1="14.31" y1="16" x2="2.83" y2="16"></line><line x1="16.62" y1="12" x2="10.88" y2="21.94"></line>',archive:'<polyline points="21 8 21 21 3 21 3 8"></polyline><rect x="1" y="3" width="22" height="5"></rect><line x1="10" y1="12" x2="14" y2="12"></line>',"arrow-down-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="8 12 12 16 16 12"></polyline><line x1="12" y1="8" x2="12" y2="16"></line>',"arrow-down-left":'<line x1="17" y1="7" x2="7" y2="17"></line><polyline points="17 17 7 17 7 7"></polyline>',"arrow-down-right":'<line x1="7" y1="7" x2="17" y2="17"></line><polyline points="17 7 17 17 7 17"></polyline>',"arrow-down":'<line x1="12" y1="5" x2="12" y2="19"></line><polyline points="19 12 12 19 5 12"></polyline>',"arrow-left-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 8 8 12 12 16"></polyline><line x1="16" y1="12" x2="8" y2="12"></line>',"arrow-left":'<line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline>',"arrow-right-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="12 16 16 12 12 8"></polyline><line x1="8" y1="12" x2="16" y2="12"></line>',"arrow-right":'<line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline>',"arrow-up-circle":'<circle cx="12" cy="12" r="10"></circle><polyline points="16 12 12 8 8 12"></polyline><line x1="12" y1="16" x2="12" y2="8"></line>',"arrow-up-left":'<line x1="17" y1="17" x2="7" y2="7"></line><polyline points="7 17 7 7 17 7"></polyline>',"arrow-up-right":'<line x1="7" y1="17" x2="17" y2="7"></line><polyline points="7 7 17 7 17 17"></polyline>',"arrow-up":'<line x1="12" y1="19" x2="12" y2="5"></line><polyline points="5 12 12 5 19 12"></polyline>',"at-sign":'<circle cx="12" cy="12" r="4"></circle><path d="M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-3.92 7.94"></path>',award:'<circle cx="12" cy="8" r="7"></circle><polyline points="8.21 13.89 7 23 12 20 17 23 15.79 13.88"></polyline>',"bar-chart-2":'<line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line>',"bar-chart":'<line x1="12" y1="20" x2="12" y2="10"></line><line x1="18" y1="20" x2="18" y2="4"></line><line x1="6" y1="20" x2="6" y2="16"></line>',"battery-charging":'<path d="M5 18H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3.19M15 6h2a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3.19"></path><line x1="23" y1="13" x2="23" y2="11"></line><polyline points="11 6 7 12 13 12 9 18"></polyline>',battery:'<rect x="1" y="6" width="18" height="12" rx="2" ry="2"></rect><line x1="23" y1="13" x2="23" y2="11"></line>',"bell-off":'<path d="M13.73 21a2 2 0 0 1-3.46 0"></path><path d="M18.63 13A17.89 17.89 0 0 1 18 8"></path><path d="M6.26 6.26A5.86 5.86 0 0 0 6 8c0 7-3 9-3 9h14"></path><path d="M18 8a6 6 0 0 0-9.33-5"></path><line x1="1" y1="1" x2="23" y2="23"></line>',bell:'<path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path>',bluetooth:'<polyline points="6.5 6.5 17.5 17.5 12 23 12 1 17.5 6.5 6.5 17.5"></polyline>',bold:'<path d="M6 4h8a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path><path d="M6 12h9a4 4 0 0 1 4 4 4 4 0 0 1-4 4H6z"></path>',"book-open":'<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>',book:'<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>',bookmark:'<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"></path>',box:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',briefcase:'<rect x="2" y="7" width="20" height="14" rx="2" ry="2"></rect><path d="M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16"></path>',calendar:'<rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line>',"camera-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M21 21H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h3m3-3h6l2 3h4a2 2 0 0 1 2 2v9.34m-7.72-2.06a4 4 0 1 1-5.56-5.56"></path>',camera:'<path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle>',cast:'<path d="M2 16.1A5 5 0 0 1 5.9 20M2 12.05A9 9 0 0 1 9.95 20M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6"></path><line x1="2" y1="20" x2="2.01" y2="20"></line>',"check-circle":'<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline>',"check-square":'<polyline points="9 11 12 14 22 4"></polyline><path d="M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11"></path>',check:'<polyline points="20 6 9 17 4 12"></polyline>',"chevron-down":'<polyline points="6 9 12 15 18 9"></polyline>',"chevron-left":'<polyline points="15 18 9 12 15 6"></polyline>',"chevron-right":'<polyline points="9 18 15 12 9 6"></polyline>',"chevron-up":'<polyline points="18 15 12 9 6 15"></polyline>',"chevrons-down":'<polyline points="7 13 12 18 17 13"></polyline><polyline points="7 6 12 11 17 6"></polyline>',"chevrons-left":'<polyline points="11 17 6 12 11 7"></polyline><polyline points="18 17 13 12 18 7"></polyline>',"chevrons-right":'<polyline points="13 17 18 12 13 7"></polyline><polyline points="6 17 11 12 6 7"></polyline>',"chevrons-up":'<polyline points="17 11 12 6 7 11"></polyline><polyline points="17 18 12 13 7 18"></polyline>',chrome:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="21.17" y1="8" x2="12" y2="8"></line><line x1="3.95" y1="6.06" x2="8.54" y2="14"></line><line x1="10.88" y1="21.94" x2="15.46" y2="14"></line>',circle:'<circle cx="12" cy="12" r="10"></circle>',clipboard:'<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"></path><rect x="8" y="2" width="8" height="4" rx="1" ry="1"></rect>',clock:'<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>',"cloud-drizzle":'<line x1="8" y1="19" x2="8" y2="21"></line><line x1="8" y1="13" x2="8" y2="15"></line><line x1="16" y1="19" x2="16" y2="21"></line><line x1="16" y1="13" x2="16" y2="15"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="12" y1="15" x2="12" y2="17"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-lightning":'<path d="M19 16.9A5 5 0 0 0 18 7h-1.26a8 8 0 1 0-11.62 9"></path><polyline points="13 11 9 17 15 17 11 23"></polyline>',"cloud-off":'<path d="M22.61 16.95A5 5 0 0 0 18 10h-1.26a8 8 0 0 0-7.05-6M5 5a8 8 0 0 0 4 15h9a5 5 0 0 0 1.7-.3"></path><line x1="1" y1="1" x2="23" y2="23"></line>',"cloud-rain":'<line x1="16" y1="13" x2="16" y2="21"></line><line x1="8" y1="13" x2="8" y2="21"></line><line x1="12" y1="15" x2="12" y2="23"></line><path d="M20 16.58A5 5 0 0 0 18 7h-1.26A8 8 0 1 0 4 15.25"></path>',"cloud-snow":'<path d="M20 17.58A5 5 0 0 0 18 8h-1.26A8 8 0 1 0 4 16.25"></path><line x1="8" y1="16" x2="8.01" y2="16"></line><line x1="8" y1="20" x2="8.01" y2="20"></line><line x1="12" y1="18" x2="12.01" y2="18"></line><line x1="12" y1="22" x2="12.01" y2="22"></line><line x1="16" y1="16" x2="16.01" y2="16"></line><line x1="16" y1="20" x2="16.01" y2="20"></line>',cloud:'<path d="M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z"></path>',code:'<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>',codepen:'<polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2"></polygon><line x1="12" y1="22" x2="12" y2="15.5"></line><polyline points="22 8.5 12 15.5 2 8.5"></polyline><polyline points="2 15.5 12 8.5 22 15.5"></polyline><line x1="12" y1="2" x2="12" y2="8.5"></line>',codesandbox:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="7.5 4.21 12 6.81 16.5 4.21"></polyline><polyline points="7.5 19.79 7.5 14.6 3 12"></polyline><polyline points="21 12 16.5 14.6 16.5 19.79"></polyline><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',coffee:'<path d="M18 8h1a4 4 0 0 1 0 8h-1"></path><path d="M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z"></path><line x1="6" y1="1" x2="6" y2="4"></line><line x1="10" y1="1" x2="10" y2="4"></line><line x1="14" y1="1" x2="14" y2="4"></line>',columns:'<path d="M12 3h7a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-7m0-18H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7m0-18v18"></path>',command:'<path d="M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"></path>',compass:'<circle cx="12" cy="12" r="10"></circle><polygon points="16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76"></polygon>',copy:'<rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path>',"corner-down-left":'<polyline points="9 10 4 15 9 20"></polyline><path d="M20 4v7a4 4 0 0 1-4 4H4"></path>',"corner-down-right":'<polyline points="15 10 20 15 15 20"></polyline><path d="M4 4v7a4 4 0 0 0 4 4h12"></path>',"corner-left-down":'<polyline points="14 15 9 20 4 15"></polyline><path d="M20 4h-7a4 4 0 0 0-4 4v12"></path>',"corner-left-up":'<polyline points="14 9 9 4 4 9"></polyline><path d="M20 20h-7a4 4 0 0 1-4-4V4"></path>',"corner-right-down":'<polyline points="10 15 15 20 20 15"></polyline><path d="M4 4h7a4 4 0 0 1 4 4v12"></path>',"corner-right-up":'<polyline points="10 9 15 4 20 9"></polyline><path d="M4 20h7a4 4 0 0 0 4-4V4"></path>',"corner-up-left":'<polyline points="9 14 4 9 9 4"></polyline><path d="M20 20v-7a4 4 0 0 0-4-4H4"></path>',"corner-up-right":'<polyline points="15 14 20 9 15 4"></polyline><path d="M4 20v-7a4 4 0 0 1 4-4h12"></path>',cpu:'<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect><rect x="9" y="9" width="6" height="6"></rect><line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line><line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line><line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line><line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>',"credit-card":'<rect x="1" y="4" width="22" height="16" rx="2" ry="2"></rect><line x1="1" y1="10" x2="23" y2="10"></line>',crop:'<path d="M6.13 1L6 16a2 2 0 0 0 2 2h15"></path><path d="M1 6.13L16 6a2 2 0 0 1 2 2v15"></path>',crosshair:'<circle cx="12" cy="12" r="10"></circle><line x1="22" y1="12" x2="18" y2="12"></line><line x1="6" y1="12" x2="2" y2="12"></line><line x1="12" y1="6" x2="12" y2="2"></line><line x1="12" y1="22" x2="12" y2="18"></line>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"></ellipse><path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3"></path><path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5"></path>',delete:'<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path><line x1="18" y1="9" x2="12" y2="15"></line><line x1="12" y1="9" x2="18" y2="15"></line>',disc:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="3"></circle>',"divide-circle":'<line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line><circle cx="12" cy="12" r="10"></circle>',"divide-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line><line x1="12" y1="16" x2="12" y2="16"></line><line x1="12" y1="8" x2="12" y2="8"></line>',divide:'<circle cx="12" cy="6" r="2"></circle><line x1="5" y1="12" x2="19" y2="12"></line><circle cx="12" cy="18" r="2"></circle>',"dollar-sign":'<line x1="12" y1="1" x2="12" y2="23"></line><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"></path>',"download-cloud":'<polyline points="8 17 12 21 16 17"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"></path>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="7 10 12 15 17 10"></polyline><line x1="12" y1="15" x2="12" y2="3"></line>',dribbble:'<circle cx="12" cy="12" r="10"></circle><path d="M8.56 2.75c4.37 6.03 6.02 9.42 8.03 17.72m2.54-15.38c-3.72 4.35-8.94 5.66-16.88 5.85m19.5 1.9c-3.5-.93-6.63-.82-8.94 0-2.58.92-5.01 2.86-7.44 6.32"></path>',droplet:'<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"></path>',"edit-2":'<path d="M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"></path>',"edit-3":'<path d="M12 20h9"></path><path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"></path>',edit:'<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>',"external-link":'<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line>',"eye-off":'<path d="M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"></path><line x1="1" y1="1" x2="23" y2="23"></line>',eye:'<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle>',facebook:'<path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path>',"fast-forward":'<polygon points="13 19 22 12 13 5 13 19"></polygon><polygon points="2 19 11 12 2 5 2 19"></polygon>',feather:'<path d="M20.24 12.24a6 6 0 0 0-8.49-8.49L5 10.5V19h8.5z"></path><line x1="16" y1="8" x2="2" y2="22"></line><line x1="17.5" y1="15" x2="9" y2="15"></line>',figma:'<path d="M5 5.5A3.5 3.5 0 0 1 8.5 2H12v7H8.5A3.5 3.5 0 0 1 5 5.5z"></path><path d="M12 2h3.5a3.5 3.5 0 1 1 0 7H12V2z"></path><path d="M12 12.5a3.5 3.5 0 1 1 7 0 3.5 3.5 0 1 1-7 0z"></path><path d="M5 19.5A3.5 3.5 0 0 1 8.5 16H12v3.5a3.5 3.5 0 1 1-7 0z"></path><path d="M5 12.5A3.5 3.5 0 0 1 8.5 9H12v7H8.5A3.5 3.5 0 0 1 5 12.5z"></path>',"file-minus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="9" y1="15" x2="15" y2="15"></line>',"file-plus":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="12" y1="18" x2="12" y2="12"></line><line x1="9" y1="15" x2="15" y2="15"></line>',"file-text":'<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><polyline points="10 9 9 9 8 9"></polyline>',file:'<path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><polyline points="13 2 13 9 20 9"></polyline>',film:'<rect x="2" y="2" width="20" height="20" rx="2.18" ry="2.18"></rect><line x1="7" y1="2" x2="7" y2="22"></line><line x1="17" y1="2" x2="17" y2="22"></line><line x1="2" y1="12" x2="22" y2="12"></line><line x1="2" y1="7" x2="7" y2="7"></line><line x1="2" y1="17" x2="7" y2="17"></line><line x1="17" y1="17" x2="22" y2="17"></line><line x1="17" y1="7" x2="22" y2="7"></line>',filter:'<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"></polygon>',flag:'<path d="M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"></path><line x1="4" y1="22" x2="4" y2="15"></line>',"folder-minus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="9" y1="14" x2="15" y2="14"></line>',"folder-plus":'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path><line x1="12" y1="11" x2="12" y2="17"></line><line x1="9" y1="14" x2="15" y2="14"></line>',folder:'<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z"></path>',framer:'<path d="M5 16V9h14V2H5l14 14h-7m-7 0l7 7v-7m-7 0h7"></path>',frown:'<circle cx="12" cy="12" r="10"></circle><path d="M16 16s-1.5-2-4-2-4 2-4 2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',gift:'<polyline points="20 12 20 22 4 22 4 12"></polyline><rect x="2" y="7" width="20" height="5"></rect><line x1="12" y1="22" x2="12" y2="7"></line><path d="M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z"></path><path d="M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z"></path>',"git-branch":'<line x1="6" y1="3" x2="6" y2="15"></line><circle cx="18" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><path d="M18 9a9 9 0 0 1-9 9"></path>',"git-commit":'<circle cx="12" cy="12" r="4"></circle><line x1="1.05" y1="12" x2="7" y2="12"></line><line x1="17.01" y1="12" x2="22.96" y2="12"></line>',"git-merge":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M6 21V9a9 9 0 0 0 9 9"></path>',"git-pull-request":'<circle cx="18" cy="18" r="3"></circle><circle cx="6" cy="6" r="3"></circle><path d="M13 6h3a2 2 0 0 1 2 2v7"></path><line x1="6" y1="9" x2="6" y2="21"></line>',github:'<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"></path>',gitlab:'<path d="M22.65 14.39L12 22.13 1.35 14.39a.84.84 0 0 1-.3-.94l1.22-3.78 2.44-7.51A.42.42 0 0 1 4.82 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.49h8.1l2.44-7.51A.42.42 0 0 1 18.6 2a.43.43 0 0 1 .58 0 .42.42 0 0 1 .11.18l2.44 7.51L23 13.45a.84.84 0 0 1-.35.94z"></path>',globe:'<circle cx="12" cy="12" r="10"></circle><line x1="2" y1="12" x2="22" y2="12"></line><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>',grid:'<rect x="3" y="3" width="7" height="7"></rect><rect x="14" y="3" width="7" height="7"></rect><rect x="14" y="14" width="7" height="7"></rect><rect x="3" y="14" width="7" height="7"></rect>',"hard-drive":'<line x1="22" y1="12" x2="2" y2="12"></line><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path><line x1="6" y1="16" x2="6.01" y2="16"></line><line x1="10" y1="16" x2="10.01" y2="16"></line>',hash:'<line x1="4" y1="9" x2="20" y2="9"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="10" y1="3" x2="8" y2="21"></line><line x1="16" y1="3" x2="14" y2="21"></line>',headphones:'<path d="M3 18v-6a9 9 0 0 1 18 0v6"></path><path d="M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z"></path>',heart:'<path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path>',"help-circle":'<circle cx="12" cy="12" r="10"></circle><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path><line x1="12" y1="17" x2="12.01" y2="17"></line>',hexagon:'<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path>',home:'<path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline>',image:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline>',inbox:'<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"></polyline><path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"></path>',info:'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>',instagram:'<rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line>',italic:'<line x1="19" y1="4" x2="10" y2="4"></line><line x1="14" y1="20" x2="5" y2="20"></line><line x1="15" y1="4" x2="9" y2="20"></line>',key:'<path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"></path>',layers:'<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon><polyline points="2 17 12 22 22 17"></polyline><polyline points="2 12 12 17 22 12"></polyline>',layout:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="3" y1="9" x2="21" y2="9"></line><line x1="9" y1="21" x2="9" y2="9"></line>',"life-buoy":'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="4"></circle><line x1="4.93" y1="4.93" x2="9.17" y2="9.17"></line><line x1="14.83" y1="14.83" x2="19.07" y2="19.07"></line><line x1="14.83" y1="9.17" x2="19.07" y2="4.93"></line><line x1="14.83" y1="9.17" x2="18.36" y2="5.64"></line><line x1="4.93" y1="19.07" x2="9.17" y2="14.83"></line>',"link-2":'<path d="M15 7h3a5 5 0 0 1 5 5 5 5 0 0 1-5 5h-3m-6 0H6a5 5 0 0 1-5-5 5 5 0 0 1 5-5h3"></path><line x1="8" y1="12" x2="16" y2="12"></line>',link:'<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>',linkedin:'<path d="M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"></path><rect x="2" y="9" width="4" height="12"></rect><circle cx="4" cy="4" r="2"></circle>',list:'<line x1="8" y1="6" x2="21" y2="6"></line><line x1="8" y1="12" x2="21" y2="12"></line><line x1="8" y1="18" x2="21" y2="18"></line><line x1="3" y1="6" x2="3.01" y2="6"></line><line x1="3" y1="12" x2="3.01" y2="12"></line><line x1="3" y1="18" x2="3.01" y2="18"></line>',loader:'<line x1="12" y1="2" x2="12" y2="6"></line><line x1="12" y1="18" x2="12" y2="22"></line><line x1="4.93" y1="4.93" x2="7.76" y2="7.76"></line><line x1="16.24" y1="16.24" x2="19.07" y2="19.07"></line><line x1="2" y1="12" x2="6" y2="12"></line><line x1="18" y1="12" x2="22" y2="12"></line><line x1="4.93" y1="19.07" x2="7.76" y2="16.24"></line><line x1="16.24" y1="7.76" x2="19.07" y2="4.93"></line>',lock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path>',"log-in":'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"></path><polyline points="10 17 15 12 10 7"></polyline><line x1="15" y1="12" x2="3" y2="12"></line>',"log-out":'<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line>',mail:'<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path><polyline points="22,6 12,13 2,6"></polyline>',"map-pin":'<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle>',map:'<polygon points="1 6 1 22 8 18 16 22 23 18 23 2 16 6 8 2 1 6"></polygon><line x1="8" y1="2" x2="8" y2="18"></line><line x1="16" y1="6" x2="16" y2="22"></line>',"maximize-2":'<polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" y1="3" x2="14" y2="10"></line><line x1="3" y1="21" x2="10" y2="14"></line>',maximize:'<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>',meh:'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="15" x2="16" y2="15"></line><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',menu:'<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>',"message-circle":'<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path>',"message-square":'<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>',"mic-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path><path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',mic:'<path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path><path d="M19 10v2a7 7 0 0 1-14 0v-2"></path><line x1="12" y1="19" x2="12" y2="23"></line><line x1="8" y1="23" x2="16" y2="23"></line>',"minimize-2":'<polyline points="4 14 10 14 10 20"></polyline><polyline points="20 10 14 10 14 4"></polyline><line x1="14" y1="10" x2="21" y2="3"></line><line x1="3" y1="21" x2="10" y2="14"></line>',minimize:'<path d="M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"></path>',"minus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line>',"minus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="8" y1="12" x2="16" y2="12"></line>',minus:'<line x1="5" y1="12" x2="19" y2="12"></line>',monitor:'<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line>',moon:'<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>',"more-horizontal":'<circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle>',"more-vertical":'<circle cx="12" cy="12" r="1"></circle><circle cx="12" cy="5" r="1"></circle><circle cx="12" cy="19" r="1"></circle>',"mouse-pointer":'<path d="M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z"></path><path d="M13 13l6 6"></path>',move:'<polyline points="5 9 2 12 5 15"></polyline><polyline points="9 5 12 2 15 5"></polyline><polyline points="15 19 12 22 9 19"></polyline><polyline points="19 9 22 12 19 15"></polyline><line x1="2" y1="12" x2="22" y2="12"></line><line x1="12" y1="2" x2="12" y2="22"></line>',music:'<path d="M9 18V5l12-2v13"></path><circle cx="6" cy="18" r="3"></circle><circle cx="18" cy="16" r="3"></circle>',"navigation-2":'<polygon points="12 2 19 21 12 17 5 21 12 2"></polygon>',navigation:'<polygon points="3 11 22 2 13 21 11 13 3 11"></polygon>',octagon:'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon>',package:'<line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line>',paperclip:'<path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>',"pause-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="10" y1="15" x2="10" y2="9"></line><line x1="14" y1="15" x2="14" y2="9"></line>',pause:'<rect x="6" y="4" width="4" height="16"></rect><rect x="14" y="4" width="4" height="16"></rect>',"pen-tool":'<path d="M12 19l7-7 3 3-7 7-3-3z"></path><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"></path><path d="M2 2l7.586 7.586"></path><circle cx="11" cy="11" r="2"></circle>',percent:'<line x1="19" y1="5" x2="5" y2="19"></line><circle cx="6.5" cy="6.5" r="2.5"></circle><circle cx="17.5" cy="17.5" r="2.5"></circle>',"phone-call":'<path d="M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-forwarded":'<polyline points="19 1 23 5 19 9"></polyline><line x1="15" y1="5" x2="23" y2="5"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-incoming":'<polyline points="16 2 16 8 22 8"></polyline><line x1="23" y1="1" x2="16" y2="8"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-missed":'<line x1="23" y1="1" x2="17" y2="7"></line><line x1="17" y1="1" x2="23" y2="7"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"phone-off":'<path d="M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91"></path><line x1="23" y1="1" x2="1" y2="23"></line>',"phone-outgoing":'<polyline points="23 7 23 1 17 1"></polyline><line x1="16" y1="8" x2="23" y2="1"></line><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',phone:'<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>',"pie-chart":'<path d="M21.21 15.89A10 10 0 1 1 8 2.83"></path><path d="M22 12A10 10 0 0 0 12 2v10z"></path>',"play-circle":'<circle cx="12" cy="12" r="10"></circle><polygon points="10 8 16 12 10 16 10 8"></polygon>',play:'<polygon points="5 3 19 12 5 21 5 3"></polygon>',"plus-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',"plus-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line>',plus:'<line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line>',pocket:'<path d="M4 3h16a2 2 0 0 1 2 2v6a10 10 0 0 1-10 10A10 10 0 0 1 2 11V5a2 2 0 0 1 2-2z"></path><polyline points="8 10 12 14 16 10"></polyline>',power:'<path d="M18.36 6.64a9 9 0 1 1-12.73 0"></path><line x1="12" y1="2" x2="12" y2="12"></line>',printer:'<polyline points="6 9 6 2 18 2 18 9"></polyline><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><rect x="6" y="14" width="12" height="8"></rect>',radio:'<circle cx="12" cy="12" r="2"></circle><path d="M16.24 7.76a6 6 0 0 1 0 8.49m-8.48-.01a6 6 0 0 1 0-8.49m11.31-2.82a10 10 0 0 1 0 14.14m-14.14 0a10 10 0 0 1 0-14.14"></path>',"refresh-ccw":'<polyline points="1 4 1 10 7 10"></polyline><polyline points="23 20 23 14 17 14"></polyline><path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>',"refresh-cw":'<polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path>',repeat:'<polyline points="17 1 21 5 17 9"></polyline><path d="M3 11V9a4 4 0 0 1 4-4h14"></path><polyline points="7 23 3 19 7 15"></polyline><path d="M21 13v2a4 4 0 0 1-4 4H3"></path>',rewind:'<polygon points="11 19 2 12 11 5 11 19"></polygon><polygon points="22 19 13 12 22 5 22 19"></polygon>',"rotate-ccw":'<polyline points="1 4 1 10 7 10"></polyline><path d="M3.51 15a9 9 0 1 0 2.13-9.36L1 10"></path>',"rotate-cw":'<polyline points="23 4 23 10 17 10"></polyline><path d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"></path>',rss:'<path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle>',save:'<path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z"></path><polyline points="17 21 17 13 7 13 7 21"></polyline><polyline points="7 3 7 8 15 8"></polyline>',scissors:'<circle cx="6" cy="6" r="3"></circle><circle cx="6" cy="18" r="3"></circle><line x1="20" y1="4" x2="8.12" y2="15.88"></line><line x1="14.47" y1="14.48" x2="20" y2="20"></line><line x1="8.12" y1="8.12" x2="12" y2="12"></line>',search:'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line>',send:'<line x1="22" y1="2" x2="11" y2="13"></line><polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>',server:'<rect x="2" y="2" width="20" height="8" rx="2" ry="2"></rect><rect x="2" y="14" width="20" height="8" rx="2" ry="2"></rect><line x1="6" y1="6" x2="6.01" y2="6"></line><line x1="6" y1="18" x2="6.01" y2="18"></line>',settings:'<circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>',"share-2":'<circle cx="18" cy="5" r="3"></circle><circle cx="6" cy="12" r="3"></circle><circle cx="18" cy="19" r="3"></circle><line x1="8.59" y1="13.51" x2="15.42" y2="17.49"></line><line x1="15.41" y1="6.51" x2="8.59" y2="10.49"></line>',share:'<path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"></path><polyline points="16 6 12 2 8 6"></polyline><line x1="12" y1="2" x2="12" y2="15"></line>',"shield-off":'<path d="M19.69 14a6.9 6.9 0 0 0 .31-2V5l-8-3-3.16 1.18"></path><path d="M4.73 4.73L4 5v7c0 6 8 10 8 10a20.29 20.29 0 0 0 5.62-4.38"></path><line x1="1" y1="1" x2="23" y2="23"></line>',shield:'<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>',"shopping-bag":'<path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path>',"shopping-cart":'<circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path>',shuffle:'<polyline points="16 3 21 3 21 8"></polyline><line x1="4" y1="20" x2="21" y2="3"></line><polyline points="21 16 21 21 16 21"></polyline><line x1="15" y1="15" x2="21" y2="21"></line><line x1="4" y1="4" x2="9" y2="9"></line>',sidebar:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="3" x2="9" y2="21"></line>',"skip-back":'<polygon points="19 20 9 12 19 4 19 20"></polygon><line x1="5" y1="19" x2="5" y2="5"></line>',"skip-forward":'<polygon points="5 4 15 12 5 20 5 4"></polygon><line x1="19" y1="5" x2="19" y2="19"></line>',slack:'<path d="M14.5 10c-.83 0-1.5-.67-1.5-1.5v-5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5z"></path><path d="M20.5 10H19V8.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"></path><path d="M9.5 14c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5S8 21.33 8 20.5v-5c0-.83.67-1.5 1.5-1.5z"></path><path d="M3.5 14H5v1.5c0 .83-.67 1.5-1.5 1.5S2 16.33 2 15.5 2.67 14 3.5 14z"></path><path d="M14 14.5c0-.83.67-1.5 1.5-1.5h5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-5c-.83 0-1.5-.67-1.5-1.5z"></path><path d="M15.5 19H14v1.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"></path><path d="M10 9.5C10 8.67 9.33 8 8.5 8h-5C2.67 8 2 8.67 2 9.5S2.67 11 3.5 11h5c.83 0 1.5-.67 1.5-1.5z"></path><path d="M8.5 5H10V3.5C10 2.67 9.33 2 8.5 2S7 2.67 7 3.5 7.67 5 8.5 5z"></path>',slash:'<circle cx="12" cy="12" r="10"></circle><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"></line>',sliders:'<line x1="4" y1="21" x2="4" y2="14"></line><line x1="4" y1="10" x2="4" y2="3"></line><line x1="12" y1="21" x2="12" y2="12"></line><line x1="12" y1="8" x2="12" y2="3"></line><line x1="20" y1="21" x2="20" y2="16"></line><line x1="20" y1="12" x2="20" y2="3"></line><line x1="1" y1="14" x2="7" y2="14"></line><line x1="9" y1="8" x2="15" y2="8"></line><line x1="17" y1="16" x2="23" y2="16"></line>',smartphone:'<rect x="5" y="2" width="14" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',smile:'<circle cx="12" cy="12" r="10"></circle><path d="M8 14s1.5 2 4 2 4-2 4-2"></path><line x1="9" y1="9" x2="9.01" y2="9"></line><line x1="15" y1="9" x2="15.01" y2="9"></line>',speaker:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><circle cx="12" cy="14" r="4"></circle><line x1="12" y1="6" x2="12.01" y2="6"></line>',square:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>',star:'<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>',"stop-circle":'<circle cx="12" cy="12" r="10"></circle><rect x="9" y="9" width="6" height="6"></rect>',sun:'<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>',sunrise:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="2" x2="12" y2="9"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="8 6 12 2 16 6"></polyline>',sunset:'<path d="M17 18a5 5 0 0 0-10 0"></path><line x1="12" y1="9" x2="12" y2="2"></line><line x1="4.22" y1="10.22" x2="5.64" y2="11.64"></line><line x1="1" y1="18" x2="3" y2="18"></line><line x1="21" y1="18" x2="23" y2="18"></line><line x1="18.36" y1="11.64" x2="19.78" y2="10.22"></line><line x1="23" y1="22" x2="1" y2="22"></line><polyline points="16 5 12 9 8 5"></polyline>',table:'<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"></path>',tablet:'<rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><line x1="12" y1="18" x2="12.01" y2="18"></line>',tag:'<path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line>',target:'<circle cx="12" cy="12" r="10"></circle><circle cx="12" cy="12" r="6"></circle><circle cx="12" cy="12" r="2"></circle>',terminal:'<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>',thermometer:'<path d="M14 14.76V3.5a2.5 2.5 0 0 0-5 0v11.26a4.5 4.5 0 1 0 5 0z"></path>',"thumbs-down":'<path d="M10 15v4a3 3 0 0 0 3 3l4-9V2H5.72a2 2 0 0 0-2 1.7l-1.38 9a2 2 0 0 0 2 2.3zm7-13h2.67A2.31 2.31 0 0 1 22 4v7a2.31 2.31 0 0 1-2.33 2H17"></path>',"thumbs-up":'<path d="M14 9V5a3 3 0 0 0-3-3l-4 9v11h11.28a2 2 0 0 0 2-1.7l1.38-9a2 2 0 0 0-2-2.3zM7 22H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2h3"></path>',"toggle-left":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="8" cy="12" r="3"></circle>',"toggle-right":'<rect x="1" y="5" width="22" height="14" rx="7" ry="7"></rect><circle cx="16" cy="12" r="3"></circle>',tool:'<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>',"trash-2":'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path><line x1="10" y1="11" x2="10" y2="17"></line><line x1="14" y1="11" x2="14" y2="17"></line>',trash:'<polyline points="3 6 5 6 21 6"></polyline><path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"></path>',trello:'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect>',"trending-down":'<polyline points="23 18 13.5 8.5 8.5 13.5 1 6"></polyline><polyline points="17 18 23 18 23 12"></polyline>',"trending-up":'<polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline><polyline points="17 6 23 6 23 12"></polyline>',triangle:'<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>',truck:'<rect x="1" y="3" width="15" height="13"></rect><polygon points="16 8 20 8 23 11 23 16 16 16 16 8"></polygon><circle cx="5.5" cy="18.5" r="2.5"></circle><circle cx="18.5" cy="18.5" r="2.5"></circle>',tv:'<rect x="2" y="7" width="20" height="15" rx="2" ry="2"></rect><polyline points="17 2 12 7 7 2"></polyline>',twitch:'<path d="M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7"></path>',twitter:'<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>',type:'<polyline points="4 7 4 4 20 4 20 7"></polyline><line x1="9" y1="20" x2="15" y2="20"></line><line x1="12" y1="4" x2="12" y2="20"></line>',umbrella:'<path d="M23 12a11.05 11.05 0 0 0-22 0zm-5 7a3 3 0 0 1-6 0v-7"></path>',underline:'<path d="M6 3v7a6 6 0 0 0 6 6 6 6 0 0 0 6-6V3"></path><line x1="4" y1="21" x2="20" y2="21"></line>',unlock:'<rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 9.9-1"></path>',"upload-cloud":'<polyline points="16 16 12 12 8 16"></polyline><line x1="12" y1="12" x2="12" y2="21"></line><path d="M20.39 18.39A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.3"></path><polyline points="16 16 12 12 8 16"></polyline>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path><polyline points="17 8 12 3 7 8"></polyline><line x1="12" y1="3" x2="12" y2="15"></line>',"user-check":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><polyline points="17 11 19 13 23 9"></polyline>',"user-minus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="23" y1="11" x2="17" y2="11"></line>',"user-plus":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line>',"user-x":'<path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="18" y1="8" x2="23" y2="13"></line><line x1="23" y1="8" x2="18" y2="13"></line>',user:'<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle>',users:'<path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path>',"video-off":'<path d="M16 16v1a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h2m5.66 0H14a2 2 0 0 1 2 2v3.34l1 1L23 7v10"></path><line x1="1" y1="1" x2="23" y2="23"></line>',video:'<polygon points="23 7 16 12 23 17 23 7"></polygon><rect x="1" y="5" width="15" height="14" rx="2" ry="2"></rect>',voicemail:'<circle cx="5.5" cy="11.5" r="4.5"></circle><circle cx="18.5" cy="11.5" r="4.5"></circle><line x1="5.5" y1="16" x2="18.5" y2="16"></line>',"volume-1":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-2":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>',"volume-x":'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon><line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>',volume:'<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>',watch:'<circle cx="12" cy="12" r="7"></circle><polyline points="12 9 12 12 13.5 13.5"></polyline><path d="M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"></path>',"wifi-off":'<line x1="1" y1="1" x2="23" y2="23"></line><path d="M16.72 11.06A10.94 10.94 0 0 1 19 12.55"></path><path d="M5 12.55a10.94 10.94 0 0 1 5.17-2.39"></path><path d="M10.71 5.05A16 16 0 0 1 22.58 9"></path><path d="M1.42 9a15.91 15.91 0 0 1 4.7-2.88"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wifi:'<path d="M5 12.55a11 11 0 0 1 14.08 0"></path><path d="M1.42 9a16 16 0 0 1 21.16 0"></path><path d="M8.53 16.11a6 6 0 0 1 6.95 0"></path><line x1="12" y1="20" x2="12.01" y2="20"></line>',wind:'<path d="M9.59 4.59A2 2 0 1 1 11 8H2m10.59 11.41A2 2 0 1 0 14 16H2m15.73-8.27A2.5 2.5 0 1 1 19.5 12H2"></path>',"x-circle":'<circle cx="12" cy="12" r="10"></circle><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-octagon":'<polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"></polygon><line x1="15" y1="9" x2="9" y2="15"></line><line x1="9" y1="9" x2="15" y2="15"></line>',"x-square":'<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><line x1="9" y1="9" x2="15" y2="15"></line><line x1="15" y1="9" x2="9" y2="15"></line>',x:'<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>',youtube:'<path d="M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"></path><polygon points="9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"></polygon>',"zap-off":'<polyline points="12.41 6.75 13 2 10.57 4.92"></polyline><polyline points="18.57 12.91 21 10 15.66 10"></polyline><polyline points="8 8 3 14 12 14 11 22 16 16"></polyline><line x1="1" y1="1" x2="23" y2="23"></line>',zap:'<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>',"zoom-in":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="11" y1="8" x2="11" y2="14"></line><line x1="8" y1="11" x2="14" y2="11"></line>',"zoom-out":'<circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line><line x1="8" y1="11" x2="14" y2="11"></line>'}},function(e){e.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"}},function(e,n,i){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t,l,r=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var i,t=arguments[n];for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o=p(i(22)),a=p(i(42));function c(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function p(e){return e&&e.__esModule?e:{default:e}}function y(e,n){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[];if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.name=e,this.contents=n,this.tags=i,this.attrs=r({},a.default,{class:"feather feather-"+e})}i=y,(t=[{key:"toSvg",value:function(){var n,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return"<svg "+(n=r({},this.attrs,e,{class:(0,o.default)(this.attrs.class,e.class)}),Object.keys(n).map(function(e){return e+'="'+n[e]+'"'}).join(" "))+">"+this.contents+"</svg>"}},{key:"toString",value:function(){return this.contents}}])&&c(i.prototype,t),l&&c(i,l),n.default=y},function(e,n,i){"use strict";var t=r(i(12)),l=r(i(39)),i=r(i(38));function r(e){return e&&e.__esModule?e:{default:e}}e.exports={icons:t.default,toSvg:l.default,replace:i.default}},function(e,n,i){e.exports=i(0)},function(e,n,i){var l=i(2)("iterator"),r=!1;try{var t=0,o={next:function(){return{done:!!t++}},return:function(){r=!0}};o[l]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,n){if(!n&&!r)return!1;var i=!1;try{var t={};t[l]=function(){return{next:function(){return{done:i=!0}}}},e(t)}catch(e){}return i}},function(e,n,i){var t=i(30),l=i(2)("toStringTag"),r="Arguments"==t(function(){return arguments}());e.exports=function(e){var n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,n){try{return e[n]}catch(e){}}(e=Object(e),l))?n:r?t(e):"Object"==(n=t(e))&&"function"==typeof e.callee?"Arguments":n}},function(e,n,i){var t=i(47),l=i(9),r=i(2)("iterator");e.exports=function(e){if(null!=e)return e[r]||e["@@iterator"]||l[t(e)]}},function(e,n,i){"use strict";var t=i(18),l=i(7),r=i(10);e.exports=function(e,n,i){(n=t(n))in e?l.f(e,n,r(0,i)):e[n]=i}},function(e,n,i){var t=i(2),l=i(9),r=t("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(l.Array===e||o[r]===e)}},function(e,n,i){var l=i(3);e.exports=function(e,n,i,t){try{return t?n(l(i)[0],i[1]):n(i)}catch(n){throw void 0!==(t=e.return)&&l(t.call(e)),n}}},function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,n,i){var r=i(52);e.exports=function(t,l,e){if(r(t),void 0===l)return t;switch(e){case 0:return function(){return t.call(l)};case 1:return function(e){return t.call(l,e)};case 2:return function(e,n){return t.call(l,e,n)};case 3:return function(e,n,i){return t.call(l,e,n,i)}}return function(){return t.apply(l,arguments)}}},function(e,n,i){"use strict";var h=i(53),x=i(24),s=i(51),u=i(50),d=i(27),f=i(49),g=i(48);e.exports=function(e){var n,i,t,l,r=x(e),e="function"==typeof this?this:Array,o=arguments.length,a=1<o?arguments[1]:void 0,c=void 0!==a,p=0,y=g(r);if(c&&(a=h(a,2<o?arguments[2]:void 0,2)),null==y||e==Array&&u(y))for(i=new e(n=d(r.length));p<n;p++)f(i,p,c?a(r[p],p):r[p]);else for(l=y.call(r),i=new e;!(t=l.next()).done;p++)f(i,p,c?s(l,a,[t.value,p],!0):t.value);return i.length=p,i}},function(e,n,i){var t=i(32),l=i(54);t({target:"Array",stat:!0,forced:!i(46)(function(e){Array.from(e)})},{from:l})},function(e,n,i){var t=i(6),l=i(3);e.exports=function(e,n){if(l(e),!t(n)&&null!==n)throw TypeError("Can't set "+String(n)+" as a prototype")}},function(e,n,i){var l=i(56);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,t=!1,e={};try{(i=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(e,[]),t=e instanceof Array}catch(i){}return function(e,n){return l(e,n),t?i.call(e,n):e.__proto__=n,e}}():void 0)},function(e,n,i){i=i(0).document,e.exports=i&&i.documentElement},function(e,n,i){var t=i(28),l=i(13);e.exports=Object.keys||function(e){return t(e,l)}},function(e,n,i){var t=i(8),o=i(7),a=i(3),c=i(59);e.exports=t?Object.defineProperties:function(e,n){a(e);for(var i,t=c(n),l=t.length,r=0;r<l;)o.f(e,i=t[r++],n[i]);return e}},function(e,n,i){function t(){}var l=i(3),r=i(60),o=i(13),a=i(15),c=i(58),p=i(34),y=i(16)("IE_PROTO"),h=function(){var e=p("iframe"),n=o.length;for(e.style.display="none",c.appendChild(e),e.src=String("javascript:"),(e=e.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),h=e.F;n--;)delete h.prototype[o[n]];return h()};e.exports=Object.create||function(e,n){var i;return null!==e?(t.prototype=l(e),i=new t,t.prototype=null,i[y]=e):i=h(),void 0===n?i:r(i,n)},a[y]=!0},function(e,n,i){i=i(4),e.exports=!!Object.getOwnPropertySymbols&&!i(function(){return!String(Symbol())})},function(e,n,i){i=i(4),e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},function(e,n,i){"use strict";function t(){return this}var l=i(26).IteratorPrototype,r=i(61),o=i(10),a=i(23),c=i(9);e.exports=function(e,n,i){return n+=" Iterator",e.prototype=r(l,{next:o(1,i)}),a(e,n,!1,!0),c[n]=t,e}},function(e,n,i){function t(e,n){return(e=a[o(e)])==p||e!=c&&("function"==typeof n?l(n):!!n)}var l=i(4),r=/#|\.prototype\./,o=t.normalize=function(e){return String(e).replace(r,".").toLowerCase()},a=t.data={},c=t.NATIVE="N",p=t.POLYFILL="P";e.exports=t},function(e,n){n.f=Object.getOwnPropertySymbols},function(e,n,i){var t=i(21),l=Math.max,r=Math.min;e.exports=function(e,n){return(e=t(e))<0?l(e+n,0):r(e,n)}},function(e,n,i){var c=i(14),p=i(27),y=i(67);e.exports=function(a){return function(e,n,i){var t,l=c(e),r=p(l.length),o=y(i,r);if(a&&n!=n){for(;o<r;)if((t=l[o++])!=t)return!0}else for(;o<r;o++)if((a||o in l)&&l[o]===n)return a||o||0;return!a&&-1}}},function(e,n,i){var t=i(28),l=i(13).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(e){return t(e,l)}},function(e,n,i){var t=i(0),l=i(69),r=i(66),o=i(3),i=t.Reflect;e.exports=i&&i.ownKeys||function(e){var n=l.f(o(e)),i=r.f;return i?n.concat(i(e)):n}},function(e,n,i){var a=i(1),c=i(70),p=i(31),y=i(7);e.exports=function(e,n){for(var i=c(n),t=y.f,l=p.f,r=0;r<i.length;r++){var o=i[r];a(e,o)||t(e,o,l(n,o))}}},function(e,n,i){var t=i(4),l=i(30),r="".split;e.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==l(e)?r.call(e,""):Object(e)}:Object},function(e,n,i){"use strict";var t={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,r=l&&!t.call({1:2},1);n.f=r?function(e){return!!(e=l(this,e))&&e.enumerable}:t},function(e,n,i){"use strict";function d(){return this}var f=i(32),g=i(64),v=i(25),m=i(57),w=i(23),M=i(5),b=i(29),t=i(2),z=i(17),A=i(9),k=(i=i(26)).IteratorPrototype,H=i.BUGGY_SAFARI_ITERATORS,V=t("iterator");e.exports=function(e,n,i,t,l,r,o){function a(e){if(e===l&&s)return s;if(!H&&e in h)return h[e];switch(e){case"keys":case"values":case"entries":return function(){return new i(this,e)}}return function(){return new i(this)}}g(i,n,t);var c,p,t=n+" Iterator",y=!1,h=e.prototype,x=h[V]||h["@@iterator"]||l&&h[l],s=!H&&x||a(l),u="Array"==n&&h.entries||x;if(u&&(u=v(u.call(new e)),k!==Object.prototype)&&u.next&&(z||v(u)===k||(m?m(u,k):"function"!=typeof u[V]&&M(u,V,d)),w(u,t,!0,!0),z)&&(A[t]=d),"values"==l&&x&&"values"!==x.name&&(y=!0,s=function(){return x.call(this)}),z&&!o||h[V]===s||M(h,V,s),A[n]=s,l)if(c={values:a("values"),keys:r?s:a("keys"),entries:a("entries")},o)for(p in c)!H&&!y&&p in h||b(h,p,c[p]);else f({target:n,proto:!0,forced:H||y},c);return c}},function(e,n){var i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,n,i){var t=i(0),i=i(36),t=t.WeakMap;e.exports="function"==typeof t&&/native code/.test(i.call(t))},function(e,n,i){var r=i(21),o=i(20);e.exports=function(e,n,i){var t,e=String(o(e)),n=r(n),l=e.length;return n<0||l<=n?i?"":void 0:(t=e.charCodeAt(n))<55296||56319<t||n+1===l||(l=e.charCodeAt(n+1))<56320||57343<l?i?e.charAt(n):t:i?e.slice(n,n+2):l-56320+(t-55296<<10)+65536}},function(e,n,i){"use strict";var t=i(77),l=i(37),i=i(74),r=l.set,o=l.getterFor("String Iterator");i(String,"String",function(e){r(this,{type:"String Iterator",string:String(e),index:0})},function(){var e=o(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(n=t(n,i,!0),e.index+=n.length,{value:n,done:!1})})},function(e,n,i){i(78),i(55),i=i(45),e.exports=i.Array.from},function(e,n,i){i(79),e.exports=i(44)}],l={},t.m=i,t.c=l,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=80);function t(e){var n;return(l[e]||(n=l[e]={i:e,l:!1,exports:{}},i[e].call(n.exports,n,n.exports,t),n.l=!0,n)).exports}var i,l}); -
mediacommander/trunk/assets/vendor/url/url.js
r3083414 r3101075 1 /* @license 2 Url.js v3.0.0 3 https://github.com/jillix/url.js 4 Released under the MIT license 5 */ 1 6 "use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Url=e()}(function(){return function o(i,r,a){function c(n,e){if(!r[n]){if(!i[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(u)return u(n,!0);throw(t=new Error("Cannot find module '"+n+"'")).code="MODULE_NOT_FOUND",t}t=r[n]={exports:{}},i[n][0].call(t.exports,function(e){return c(i[n][1][e]||e)},t,t.exports,o,i,r,a)}return r[n].exports}for(var u="function"==typeof require&&require,e=0;e<a.length;e++)c(a[e]);return c}({1:[function(e,n,t){window.addEventListener("hashchange",function(e){a._isHash=!0}),window.addEventListener("popstate",function(e){setTimeout(function(){return a._isHash?(a.triggerHashchangeCb(),void(a._isHash=!1)):void a.triggerPopStateCb(e)},0)});var a=n.exports={_onPopStateCbs:[],_onHashchangeCbs:[],_onHash:[],_isHash:!1,queryString:function(e,n){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(location.search);return null!==t?(t=t[1].replace(/\+/g," "),n?t:decodeURIComponent(t)):!!new RegExp("[\\?&]"+e+"(\\&([^&#]*)|$)").test(location.search)||void 0},parseQuery:function(e){var n={};if(!(e=(e="string"!=typeof e?window.location.search:e).replace(/^\?/g,"")))return{};for(var t,o=e.split("&"),i=0,r=void 0;i<o.length;++i)t=(r=o[i].indexOf("="))<0?(r=o[i].length,!0):decodeURIComponent(o[i].slice(r+1)),n[decodeURIComponent(o[i].slice(0,r))]=t;return n},stringify:function(t){var o;if(t&&t.constructor===Object)return o="",Object.keys(t).forEach(function(e){var n=t[e];o+=e,!0!==n&&(o+="="+encodeURIComponent(t[e])),o+="&"}),o=o.replace(/\&$/g,"");throw new Error("Query object should be an object.")},updateSearchParam:function(e,n,t,o){if("object"!==(void 0===e?"undefined":_typeof(e))){var i=this.parseQuery();if(void 0===n)delete i[e];else{if(i[e]===n)return a;i[e]=n}return i=(i=this.stringify(i))&&"?"+i,this._updateAll(window.location.pathname+i+location.hash,t,o),a}for(var r in e)e.hasOwnProperty(r)&&this.updateSearchParam(r,e[r],t,o)},getLocation:function(e){return window.location.pathname+window.location.search+(e?"":window.location.hash)},hash:function(e,n){return void 0===e?location.hash.substring(1):(n?location.hash=e:a._updateAll(a.getLocation(!0)+(e?"#"+e:"")),e)},_updateAll:function(e,n,t){return window.history[n?"pushState":"replaceState"](null,"",e),t&&a.triggerPopStateCb({}),e},pathname:function(e,n,t){return void 0===e?location.pathname:this._updateAll(e+window.location.search+window.location.hash,n,t)},triggerHashchangeCb:function(n){this._onHashchangeCbs.forEach(function(e){e(n)})},triggerPopStateCb:function(n){this._onPopStateCbs.forEach(function(e){e(n)})},onPopState:function(e){this._onPopStateCbs.push(e)},onHashchange:function(e){this._onHashchangeCbs.push(e)},removeHash:function(e,n){this._updateAll(window.location.pathname+window.location.search,e||!1,n||!1)},removeQuery:function(e,n){this._updateAll(window.location.pathname+window.location.hash,e||!1,n||!1)},version:"3.0.0"}},{}]},{},[1])(1)}); -
mediacommander/trunk/includes/Models/ConfigModel.php
r3092973 r3101075 1 1 <?php 2 2 3 namespace MediaCommander\Models; 3 4 4 5 defined( 'ABSPATH' ) || exit; 5 6 6 class ConfigModel { 7 7 const OPTION_KEY = 'mediacommander_config'; 8 8 9 const DEFAULT_CONFIG = [ 9 'roles' => [ 'administrator'],10 'default_color' => NULL,11 'disable_counter' => false,12 'disable_ajax' => false,13 'infinite_scrolling' => false,14 'disable_search_bar' => false,15 'replace_media' => false,16 'uninstall_fully' => false,17 'media_hover_details' => true,18 'media_hover_details_list' => [ 'title', 'size', 'dimension' ] // 'alternative_text', 'file_url', 'filename', 'type', 'date', 'uploaded_by'10 'roles' => ['administrator'], 11 'default_color' => NULL, 12 'disable_counter' => false, 13 'disable_ajax' => false, 14 'infinite_scrolling' => false, 15 'disable_search_bar' => false, 16 'replace_media' => false, 17 'uninstall_fully' => false, 18 'media_hover_details' => true, 19 'media_hover_details_list' => ['title', 'size', 'dimension'], 19 20 ]; 20 21 … … 25 26 public static function get( $option = null ) { 26 27 $data = get_option( self::OPTION_KEY ); 27 28 if( $data == false ) { 28 if ( $data == false ) { 29 29 $data = self::DEFAULT_CONFIG; 30 30 } else { … … 35 35 } 36 36 } 37 38 37 if ( $data && $option != null ) { 39 return $data[ $option];38 return $data[$option]; 40 39 } 41 42 return $data ? $data : null; 40 return ( $data ? $data : null ); 43 41 } 44 42 45 43 public static function set( $data = null ) { 46 $data = $data ? $data : self::get(); 47 $data = $data ? $data : []; 48 44 $data = ( $data ? $data : self::get() ); 45 $data = ( $data ? $data : [] ); 49 46 foreach ( self::DEFAULT_CONFIG as $key => $option ) { 50 47 if ( !array_key_exists( $key, $data ) ) { … … 52 49 } 53 50 } 54 55 51 foreach ( $data as $key => $option ) { 56 52 if ( !array_key_exists( $key, self::DEFAULT_CONFIG ) ) { 57 unset( $data[$key]);53 unset($data[$key]); 58 54 } 59 55 } 60 61 56 if ( get_option( self::OPTION_KEY ) == false ) { 62 57 $autoload = 'no'; 63 return add_option( self::OPTION_KEY, $data, '', $autoload ); 58 return add_option( 59 self::OPTION_KEY, 60 $data, 61 '', 62 $autoload 63 ); 64 64 } else { 65 65 $old_value = get_option( self::OPTION_KEY ); … … 74 74 public static function getTicket() { 75 75 global $mediacommander_fs; 76 if( $mediacommander_fs->can_use_premium_code() ) {77 return true;78 }79 76 return false; 80 77 } … … 99 96 return $mediacommander_fs->is_anonymous(); 100 97 } 98 101 99 } -
mediacommander/trunk/includes/Models/FoldersModel.php
r3092973 r3101075 679 679 } 680 680 681 public static function getAttachments( $id, $max ) { 682 global $wpdb; 683 $tableAttachments = HelperModel::getTableName(HelperModel::ATTACHMENTS); 684 685 // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared 686 $sql = $wpdb->prepare( "SELECT attachment_id as id FROM {$tableAttachments} WHERE folder_id = %d LIMIT %d", $id, $max ); 687 // phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared, WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching 688 $ids = $wpdb->get_col( $sql ); 689 690 return $ids; 691 } 692 681 693 public static function getAttachmentFiles( $id ) { 682 694 global $wpdb; -
mediacommander/trunk/includes/Plugin.php
r3083414 r3101075 20 20 21 21 new Rest\Routes(); 22 new Blocks\GalleryBlock(); 22 23 new System\Notice(); 23 24 new System\Folders(); -
mediacommander/trunk/includes/System/Folders.php
r3092973 r3101075 350 350 ] 351 351 ], 352 'msg' => HelperModel::getMessagesForSidebar(),353 352 'api' => [ 354 353 'nonce' => wp_create_nonce( 'wp_rest' ), 355 354 'url' => esc_url_raw( rest_url( MEDIACOMMANDER_PLUGIN_REST_URL ) ) 356 ] 355 ], 356 'msg' => HelperModel::getMessagesForSidebar() 357 357 ]; 358 358 -
mediacommander/trunk/mediacommander.php
r3095757 r3101075 5 5 * Plugin URI: https://yalogica.com/mediacommander/ 6 6 * Description: Improve your WordPress media library with a more intuitive way. Simply drag & drop items into folders for effortless accessibility. 7 * Version: 2. 1.17 * Version: 2.2.0 8 8 * Requires at least: 4.6 9 9 * Requires PHP: 7.4 … … 36 36 } 37 37 define( 'MEDIACOMMANDER_PLUGIN_NAME', 'mediacommander' ); 38 define( 'MEDIACOMMANDER_PLUGIN_VERSION', '2. 1.1' );38 define( 'MEDIACOMMANDER_PLUGIN_VERSION', '2.2.0' ); 39 39 define( 'MEDIACOMMANDER_PLUGIN_DB_VERSION', '2.0' ); 40 40 define( 'MEDIACOMMANDER_PLUGIN_DB_TABLE_PREFIX', 'mediacommander' ); … … 46 46 define( 'MEDIACOMMANDER_PLUGIN_SITE_URL', 'https://yalogica.com/mediacommander/' ); 47 47 define( 'MEDIACOMMANDER_PLUGIN_DOCS_URL', 'https://yalogica.com/docs/mediacommander/' ); 48 if ( !function_exists( 'mediacommander_fs' ) ) { 49 function mediacommander_fs() { 50 global $mediacommander_fs; 51 if ( !isset( $mediacommander_fs ) ) { 52 require_once dirname( __FILE__ ) . '/freemius/start.php'; 53 $mediacommander_fs = fs_dynamic_init( [ 54 'id' => '15460', 55 'slug' => 'mediacommander', 56 'type' => 'plugin', 57 "public_key" => 'pk_80981d4f69df2825ab7a9651b6d77', 58 'is_premium' => false, 59 'has_addons' => false, 60 'has_paid_plans' => true, 61 'is_org_compliant' => true, 62 'menu' => [ 63 'slug' => 'mediacommander-settings', 64 'parent' => [ 65 'slug' => 'options-general.php', 48 if ( function_exists( 'mediacommander_fs' ) ) { 49 mediacommander_fs()->set_basename( false, __FILE__ ); 50 } else { 51 if ( !function_exists( 'mediacommander_fs' ) ) { 52 function mediacommander_fs() { 53 global $mediacommander_fs; 54 if ( !isset( $mediacommander_fs ) ) { 55 require_once dirname( __FILE__ ) . '/freemius/start.php'; 56 $mediacommander_fs = fs_dynamic_init( [ 57 'id' => '15460', 58 'slug' => 'mediacommander', 59 'type' => 'plugin', 60 "public_key" => 'pk_80981d4f69df2825ab7a9651b6d77', 61 'is_premium' => false, 62 'premium_suffix' => 'Pro', 63 'has_addons' => false, 64 'has_paid_plans' => true, 65 'is_org_compliant' => true, 66 'menu' => [ 67 'slug' => 'mediacommander-settings', 68 'parent' => [ 69 'slug' => 'options-general.php', 70 ], 71 'account' => false, 72 'contact' => false, 73 'support' => false, 74 'pricing' => false, 66 75 ], 67 'account' => false, 68 'contact' => false, 69 'support' => false, 70 'pricing' => false, 71 ], 72 'is_live' => true, 73 ] ); 76 'is_live' => true, 77 ] ); 78 } 79 return $mediacommander_fs; 74 80 } 75 return $mediacommander_fs; 81 82 // Init Freemius. 83 mediacommander_fs(); 84 // Signal that SDK was initiated. 85 do_action( 'mediacommander_fs_loaded' ); 76 86 } 77 78 // Init Freemius.79 mediacommander_fs();80 // Signal that SDK was initiated.81 do_action( 'mediacommander_fs_loaded');87 register_activation_hook( __FILE__, ['MediaCommander\\Plugin', 'activate'] ); 88 register_deactivation_hook( __FILE__, ['MediaCommander\\Plugin', 'deactivate'] ); 89 require_once __DIR__ . '/vendor/autoload.php'; 90 require_once __DIR__ . '/includes/autoload.php'; 91 Plugin::run(); 82 92 } 83 register_activation_hook( __FILE__, ['MediaCommander\\Plugin', 'activate'] );84 register_deactivation_hook( __FILE__, ['MediaCommander\\Plugin', 'deactivate'] );85 require_once __DIR__ . '/vendor/autoload.php';86 require_once __DIR__ . '/includes/autoload.php';87 Plugin::run(); -
mediacommander/trunk/readme.txt
r3096383 r3101075 4 4 Requires at least: 4.6 5 5 Tested up to: 6.5 6 Stable tag: 2. 1.16 Stable tag: 2.2.0 7 7 Requires PHP: 7.4 8 8 License: GPLv3 9 9 10 Take control of your content: effortlessly manage posts, pages, and media with our folder manager!10 Take control of your content: effortlessly manage posts, pages, and media library with our folder manager! 11 11 12 12 == DESCRIPTION == … … 45 45 ###🔥 Features 46 46 47 ✅ **Unlimited Folders for Ultimate Flexibility:** Unlock unlimited folders and subfolders to organize your media library, posts, and pages. Effortlessly move and customize your content to suit your unique needs with a simple and intuitive interface. Create, arrange, and structure your folders to perfection.48 49 ✅ **Drag & Drop Interface for Lightning-Fast Organization:**MediaCommander's drag-and-drop functionality transforms how you manage your WordPress content. Move multiple items simultaneously, place them in folders, or nest folders within folders in an instant. Reduce clicks and save time with this efficient and user-friendly interface.50 51 ✅ **Bulk Operations for Streamlined Efficiency:** Perform bulk actions with ease andstreamline your content management tasks. Move multiple items, reorder folders, or apply changes to large amounts of content in a flash. MediaCommander simplifies the process, ensuring your site remains organized and up-to-date.52 53 ✅ **Create & Manage Folders with Tree-Like Structure:** MediaCommander empowers you to create and arrange folders into a hierarchical tree structure. Drag and drop folders to your desired location, instantly organizing your content exactly to your preferences. Achieve the level of organization you've always desired.54 55 ✅ **Download Folders as ZIP for Convenience:** Export your organized folders, along with their subfolders and attachment files, as a single ZIP file. Maintain the same folder structure for easy backup or transfer, keeping your content coherent and portable.56 57 ✅ ** Folder Permissions for Collaborative Control:** Define specific permissions for users or roles, such as view, edit, delete, and attach items to folders. This feature is ideal for multi-author blogs and sites, allowing you to manage access and maintain a secure and controlled environment for your team.47 ✅ **Unlimited Folders:** Bring ultimate flexibility and unlock unlimited folders and subfolders to organize your media library, posts, and pages. Effortlessly move and customize your content to suit your unique needs with a simple and intuitive interface. Create, arrange, and structure your folders to perfection. 48 49 ✅ **Drag & Drop Interface:** Lightning-fast organization. MediaCommander's drag-and-drop functionality transforms how you manage your WordPress content. Move multiple items simultaneously, place them in folders, or nest folders within folders in an instant. Reduce clicks and save time with this efficient and user-friendly interface. 50 51 ✅ **Bulk Operations:** Optimize streamlined efficiency and perform bulk actions with ease to streamline your content management tasks. Move multiple items, reorder folders, or apply changes to large amounts of content in a flash. MediaCommander simplifies the process, ensuring your site remains organized and up-to-date. 52 53 ✅ **Create & Manage Folders:** MediaCommander empowers you to create and arrange folders into a hierarchical tree structure. Drag and drop folders to your desired location, instantly organizing your content exactly to your preferences. Achieve the level of organization you've always desired. 54 55 ✅ **Download Folders as ZIP:** Export your organized folders, along with their subfolders and attachment files, as a single ZIP file. Maintain the same folder structure for easy backup or transfer, keeping your content coherent and portable. 56 57 ✅ **Advanced Folder Permissions:** Provide collaborative control and define specific permissions for users or roles, such as view, edit, delete, and attach items to folders. This feature is ideal for multi-author blogs and sites, allowing you to manage access and maintain a secure and controlled environment for your team. 58 58 59 59 ✅ **Replace Media with Ease:** The MediaCommander plugin simplifies media replacement. It adds a convenient button to the "Attachment Details" screen, allowing you to select and replace images while retaining their properties and URLs. Update media effortlessly, ensuring your content remains fresh and visually appealing. … … 61 61 > Note: If you find that this feature is not working properly, try disabling your browser cache and any third-party WordPress caching plugins. 62 62 63 ✅ **Custom Sorting for Easy Access:** Arrange items within folders by name, date, modification, or author to streamline your workflow. Quickly find what you need with efficient sorting options, making content management a breeze.63 ✅ **Custom Sorting:** The convenient easy-access feature simplifies your workflow. Arrange items within folders by name, date, modification, or author to streamline your content management process. With efficient sorting options, finding what you need is a breeze, making your workflow seamless. 64 64 65 65 ✅ **Search & Filter with Precision:** Easily search and filter folders to locate specific items in an instant. Use keywords or phrases, and even wildcards, to narrow down your search. MediaCommander's powerful search functionality ensures you can find content swiftly and efficiently. 66 66 67 ✅ ** Organize Items Including Built-In Types:** MediaCommander lets you categorize all standard types built into WordPress, including media files, posts, pages, and users. Efficiently manage your content and keep everything neatly organized in one place.68 69 ✅ ** Custom Post Types for Comprehensive Organization:** Extend folder management to custom post types, providing a unified approach. Manage and group all registered custom post types, even those you create yourself, ensuring a consistent and structured content management system.67 ✅ **Folders for Media Library, Posts, Pages & Users:** MediaCommander lets you categorize all standard types built into WordPress, including media files, posts, pages, and users. Efficiently manage your content and keep everything neatly organized in one place. 68 69 ✅ **Folders for Custom Post Types:** Do you desire comprehensive organization? Extend folder management to WordPress custom post types for a unified experience. Manage and group all registered custom post types, including those you create yourself, providing a consistent and structured content management system. 70 70 71 71 ✅ **WooCommerce Integration for Efficient E-commerce:** MediaCommander supports folders for WooCommerce listings, including products, orders, and coupons. Easily organize and manage your WooCommerce content, saving time and maintaining a professional online presence. … … 73 73 ✅ **Fast Media Management for Dynamic Content:** Effortlessly move media files individually or in bulk between folders. Create, rename, delete, and organize folders to suit your content needs, ensuring a seamless and dynamic media management experience. 74 74 75 ✅ **Direct Upload & Management for Time Savings:** Select a folder and upload newfiles directly into it, saving you valuable time. MediaCommander's direct upload feature streamlines the content addition process, making media management a breeze.76 77 ✅ **Responsive Sidebar for a Tailored Experience:** Customize the MediaCommander sidebar to your preferences. Resize and toggle it on or off as needed, creating a seamless and personalized user interface that adapts to your workflow.78 79 ✅ **Smart Delete for Peace of Mind:** Add, rename, or delete folders with a single click. Even when deleting a folder, your data remains safe, automatically moving to the "Uncategorized" folder for future access. MediaCommander ensures your content is always secure.80 81 ✅ **Color Folders for Visual Appeal:** Add a splash of color to your folders with just a few clicks. Set a color for your folders to create a vibrant and clear folder structure, making it easier to identify and locate specific content.75 ✅ **Direct Upload:** It's a time-saving feature. Select a folder and upload new media files directly into it, saving you valuable time. MediaCommander's direct upload feature streamlines the content addition process, making media management a breeze. 76 77 ✅ **Responsive Sidebar:** Customize the MediaCommander sidebar to your preferences. Resize and toggle it on or off as needed, creating a seamless and personalized user interface that adapts to your workflow. 78 79 ✅ **Smart Delete:** Add, rename, or delete folders with a single click. Even when deleting a folder, your data remains safe, automatically moving to the "Uncategorized" folder for future access. MediaCommander ensures your content is always secure. 80 81 ✅ **Color Folders:** Enhance visual appeal by adding a splash of color to your folders with just a few clicks. Set a color for each folder to create a vibrant and clear folder structure, making it easier to identify and locate specific content at a glance. 82 82 83 83 ✅ **Your Voice Matters:** At MediaCommander, we value your feedback. If there are additional features you'd like to see, let us know! We are always open to suggestions and may include your ideas in future plugin updates. … … 188 188 == Changelog === 189 189 190 = 2.2.0 = 191 * New: block for image gallery (Gutenberg) 192 190 193 = 2.1.1 = 191 194 * Fix: some minor bugs
Note: See TracChangeset
for help on using the changeset viewer.