diff --git a/clj-rn.conf.edn b/clj-rn.conf.edn index a80905e079..4b07672291 100644 --- a/clj-rn.conf.edn +++ b/clj-rn.conf.edn @@ -32,7 +32,6 @@ "emojilib" "eth-phishing-detect" "react-native-config" - "react-native-svg" "react-native-screens" "react-native-keychain" "rn-snoopy" @@ -71,7 +70,6 @@ "emojilib" "eth-phishing-detect" "react-native-config" - "react-native-svg" "react-native-keychain" "rn-snoopy" "rn-snoopy/stream/bars" diff --git a/components/src/status_im/ui/components/svg.clj b/components/src/status_im/ui/components/svg.clj deleted file mode 100644 index eb08328b8f..0000000000 --- a/components/src/status_im/ui/components/svg.clj +++ /dev/null @@ -1,41 +0,0 @@ -(ns status-im.ui.components.svg - (:require [clojure.string :as string] - [hickory.core :as hickory])) - -(def svg-tags #{:svg :g :rect :path :use :defs :circle}) - -(defmacro slurp-svg [file] - "Reads svg file, and return function (fn [color] ..), which returns hiccup structure for react-native-svg lib - - Example - - SVG: - \n - \n - - - Result: - (fn [color] - [path {:fill color :fill-rule \"evenodd\" :d \"M13.5416667...\"}] - - Attention!!!: Please make sure svg file has fill field, and has structure like above - " - (let [svg (-> (clojure.core/slurp file) - (string/replace #"[\n]\s*" "")) - svg-hiccup (hickory/as-hiccup (first (hickory/parse-fragment svg))) - color (gensym "args")] - `(fn [~color] - ~(into [] - (clojure.walk/postwalk-replace - {:viewbox :viewBox} ;; See https://github.com/jhy/jsoup/issues/272 - (clojure.walk/prewalk - (fn [node] - (if (svg-tags node) - (symbol (name node)) - (if (vector? node) - (let [[k v] node] - (if (and (= :fill k) v) - [k color] - node)) - node))) - svg-hiccup)))))) \ No newline at end of file diff --git a/desktop_files/package.json.orig b/desktop_files/package.json.orig index 28238e9961..d6c236c397 100644 --- a/desktop_files/package.json.orig +++ b/desktop_files/package.json.orig @@ -87,7 +87,6 @@ "react-native-qrcode": "0.2.6", "react-native-securerandom": "git+https://github.com/status-im/react-native-securerandom.git#0.1.1-2", "react-native-splash-screen": "3.0.6", - "react-native-svg": "6.3.1", "react-native-tcp": "3.3.0", "react-native-udp": "2.2.1", "react-native-webview-bridge": "git+https://github.com/status-im/react-native-webview-bridge.git#0.33.16-status-rn049-desktop", diff --git a/ios/StatusIm.xcodeproj/project.pbxproj b/ios/StatusIm.xcodeproj/project.pbxproj index 10a168e7b8..2cc611aec4 100644 --- a/ios/StatusIm.xcodeproj/project.pbxproj +++ b/ios/StatusIm.xcodeproj/project.pbxproj @@ -60,7 +60,6 @@ B24FC7FF1DE7195F00D694FF /* MessageUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B24FC7FE1DE7195F00D694FF /* MessageUI.framework */; }; B2DEA0D01E49E33300FA28D6 /* libRCTHttpServer.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2DEA0B11E49E32000FA28D6 /* libRCTHttpServer.a */; }; B2F2D1BC1D9D531B00B7B453 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B2F2D1BB1D9D531B00B7B453 /* Images.xcassets */; }; - B49246102225D86900DE94D5 /* mapview in Resources */ = {isa = PBXBuildFile; fileRef = B492460F2225D86900DE94D5 /* mapview */; }; B957A49EB0DE44D9A31CAF2D /* libRNSVG.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AF2BF381BC7B4EB0887F0091 /* libRNSVG.a */; }; BA68A2377A20496EA737000D /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 4E586E1B0E544F64AA9F5BD1 /* libz.tbd */; }; C93242561FE1C68C00FE7099 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C93242531FE1C68C00FE7099 /* libRCTAnimation.a */; }; @@ -635,7 +634,6 @@ B2F2D1BB1D9D531B00B7B453 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = StatusIm/Images.xcassets; sourceTree = ""; }; B321D25F4493470980039457 /* Inter-BoldItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Inter-BoldItalic.otf"; path = "../resources/fonts/Inter-BoldItalic.otf"; sourceTree = ""; }; B461988B2210C98F00603CF2 /* RNCWebView.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNCWebView.xcodeproj; path = "../node_modules/react-native-webview/ios/RNCWebView.xcodeproj"; sourceTree = ""; }; - B492460F2225D86900DE94D5 /* mapview */ = {isa = PBXFileReference; lastKnownFileType = folder; name = mapview; path = ../resources/mapview; sourceTree = ""; }; C2A4E93F6B154AEFA3485B45 /* libTcpSockets.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libTcpSockets.a; sourceTree = ""; }; C6B1215047604CD59A4C74D6 /* Inter-MediumItalic.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Inter-MediumItalic.otf"; path = "../resources/fonts/Inter-MediumItalic.otf"; sourceTree = ""; }; CD48A32459B64E96843BB238 /* libRealmReact.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRealmReact.a; sourceTree = ""; }; @@ -828,7 +826,6 @@ 1E7837547A9A40E18AD63CF3 /* Resources */ = { isa = PBXGroup; children = ( - B492460F2225D86900DE94D5 /* mapview */, 983F07442119C9D2004133ED /* message.wav */, 2028E0111D4275BD00227DCD /* SF */, B23B48FE1E76917B006D4535 /* RobotoMono-Medium.ttf */, @@ -1871,7 +1868,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - B49246102225D86900DE94D5 /* mapview in Resources */, 983F077E2119C9D2004133ED /* message.wav in Resources */, 74B758FC20D7C00B003343C3 /* launch-image-universal.storyboard in Resources */, B2F2D1BC1D9D531B00B7B453 /* Images.xcassets in Resources */, diff --git a/react-native/src/mobile/status_im/react_native/js_dependencies.cljs b/react-native/src/mobile/status_im/react_native/js_dependencies.cljs index 8f56fc3195..846adf1258 100644 --- a/react-native/src/mobile/status_im/react_native/js_dependencies.cljs +++ b/react-native/src/mobile/status_im/react_native/js_dependencies.cljs @@ -25,7 +25,6 @@ (def dismiss-keyboard (js-require/js-require "dismissKeyboard")) (def image-crop-picker (js-require/js-require "react-native-image-crop-picker")) (def image-resizer (js-require/js-require "react-native-image-resizer")) -(def svg (js/require "react-native-svg")) (def react-native-firebase (js-require/js-require "react-native-firebase")) (def snoopy (js-require/js-require "rn-snoopy")) (def snoopy-filter (js-require/js-require "rn-snoopy/stream/filter")) diff --git a/resources/extensions/kyber.edn b/resources/extensions/kyber.edn deleted file mode 100644 index 8f8634ee03..0000000000 --- a/resources/extensions/kyber.edn +++ /dev/null @@ -1,227 +0,0 @@ -{meta {:name "Kyber UI" - :description "Kyber exchange" - :documentation ""} - - events/on-transaction-receipt - (let [{value :value} properties] - [store/put {:key "RECEIPT" :value value}]) - - events/on-trade-result - (let [{value :value} properties] - [ethereum/await-transaction-receipt {:interval 1000 :value value :on-success [on-transaction-receipt]}]) - - events/trade - (let [{src-address :src-address dest-address :dest-address amount-in-wei :amount-in-wei address :address slippage :slippage} properties] - [ethereum/send-transaction {:to "0x818E6FECD516Ecc3849DAf6845e3EC868087B755" - :method "trade(address,uint256,address,address,uint256,uint256,address)" - :gas "600000" - :params [src-address amount-in-wei dest-address address "57896044618658097711785492504343953926634992332820282019728792003956564819968" slippage "0xD8a38Ae058fB6a6A6CB9517cF9Bc1730a6E15617"] - :on-success [on-trade-result]}]) - events/approve - (let [{src-address :src-address dest-address :dest-address address :address amount-in-wei :amount-in-wei slippage :slippage} properties] - ;; Approve Kyber contract for further transfer - [ethereum/send-transaction {:to src-address - :method "approve(address,uint256)" - :params ["0x818E6FECD516Ecc3849DAf6845e3EC868087B755" amount-in-wei] - :gas "100000" - :on-success [trade {:address address :amount-in-wei amount-in-wei :slippage slippage :src-address src-address :dest-address dest-address}]}]) - - views/render-token - (let [{name :name {source :source} :icon} properties] - [view {:style {:height 64 :margin-horizontal 16 :flex-direction :row :align-items :center}} - [image {:source source :style {:width 40 :height 40}}] - [text {:style {:margin-left 16 :font-size 16 :color :black}} name]]) - - events/aputs - (let [{key :key selection :selection source :source symbol :symbol rate :rate value :value} properties] - [store/puts {:value [{:key key :value {:selection selection :source source :symbol symbol}} - {:key "RATE" :value {:value rate}} - {:key "AMOUNT-TO-RECEIVE" :value value}]}]) - - events/on-rate-result - (let [{key :key amount :amount selection :selection source :source symbol :symbol [_ slippage :as result] :value} properties] - [arithmetic {:operation :times :values [amount slippage] - :on-result [aputs {:key key :amount amount :rate result :selection selection :source source :symbol symbol}]}]) - - ;; TODO Consider Kyber tokens list (require view lifecycle?) - ;; TODO react on amount changes too - ;; TODO hook completion screens (require case support?) - ;; TODO proper error handling - - events/on-src-rate-params-change - (let [{key :key amount :amount amount-in-wei :amount-in-wei dest-address :dest-address address :address selection :name {source :source} :icon symbol :symbol} properties] - [ethereum/call {:to "0x818E6FECD516Ecc3849DAf6845e3EC868087B755" - :method "getExpectedRate(address,address,uint256)" - :params [address dest-address amount-in-wei] - :outputs ["uint256" "uint256"] - :on-success [on-rate-result {:key key :amount amount :selection selection :source source :symbol symbol}]}]) - - events/on-dest-rate-params-change - (let [{key :key amount :amount amount-in-wei :amount-in-wei src-address :src-address address :address selection :name {source :source} :icon symbol :symbol} properties] - [ethereum/call {:to "0x818E6FECD516Ecc3849DAf6845e3EC868087B755" - :method "getExpectedRate(address,address,uint256)" - :params [src-address address amount-in-wei] - :outputs ["uint256" "uint256"] - :on-success [on-rate-result {:key key :amount amount :selection selection :source source :symbol symbol}]}]) - - events/bputs - (let [{amount :amount rate :rate value :value} properties] - [store/puts {:value [{:key "RATE" :value {:value rate}} - {:key "AMOUNT" :value amount} - {:key "AMOUNT-TO-RECEIVE" :value value}]}]) - - events/on-amount-rate-result - (let [{amount :amount [_ slippage :as result] :result} properties] - [arithmetic {:operation :times :values [amount slippage] - :on-result [bputs {:amount amount :rate result}]}]) - - events/on-amount-params-change - (let [{amount :value src-address :src-address dest-address :dest-address} properties] - [ethereum/call {:to "0x818E6FECD516Ecc3849DAf6845e3EC868087B755" - :method "getExpectedRate(address,address,uint256)" - :params [src-address dest-address amount-in-wei] - :outputs ["uint256" "uint256"] - :on-success [on-amount-rate-result {:amount amount}]}]) - - events/store-amount - (let [{amount :value} properties] - [store/put {:key "AMOUNT" :value amount}]) - - views/sign-to-confirm - (let [{color :color} properties] - [view {:style {:flex-direction :row :margin-vertical 14 :align-items :center}} - [view {:style {:flex 1}}] - [text {:style {:color color :font-size 15 :margin-right 5}} "Sign to confirm"] - [icon {:key :main-icons/next :color color}]]) - - views/transaction-failed-panel - (let [{} properties] - [view {:style {:flex 1 :background-color "#4360df"}} - [view {:style {:flex 1 :justify-content :center :align-items :center}} - [view {:style {:background-color :white :width 56 :height 56 :border-radius 28 :align-items :center :justify-content :center}} - [icon {:key :main-icons/check :color "#4360df"}]] - [text {:style {:color :white :font-size 17 :margin-top 16}} "Transaction Failed"] - [text {:style {:color "rgba(255,255,255,0.6)" :font-size 15 :margin-top 8}} "Sorry :("] - [view {:style {:height 1 :background-color :white :opacity 0.2}}] - [view {:style {:flex 1}}] - [touchable-opacity {:on-press [store/put {:key "completed?" :value false}]} - [text {:style {:color :white :font-size 15 :margin-top 16}} "Try again"]]]]) - - views/transaction-pending-panel - (let [{} properties] - [view {:style {:flex 1 :background-color "#4360df"}} - [view {:style {:flex 1 :justify-content :center :align-items :center :margin-top 200}} - [view {:style {:background-color :white :width 56 :height 56 :border-radius 28 :align-items :center :justify-content :center}} - [icon {:key :main-icons/check :color "#4360df"}]] - [text {:style {:color :white :font-size 17 :margin-top 16}} "Transaction Pending"] - [text {:style {:color "rgba(255,255,255,0.6)" :font-size 15 :margin-top 8 :margin-horizontal 40}} - "Your transaction is pending confirmation on the blockchain. You can check its status in your transaction history."] - [view {:style {:flex 1}}] - [view {:style {:height 1 :background-color :white :opacity 0.2}}] - [touchable-opacity {:on-press [store/put {:key "completed?" :value false}]} - [text {:style {:color :white :font-size 15 :margin-bottom 14 :margin-top 18}} "Back to wallet"]]]]) - - views/transaction-completed-panel - (let [{tokenname1 :tokenname1 tokenname2 :tokenname2 source1 :source1 source2 :source2 address :address} properties] - [view {:style {:flex 1 :background-color "#4360df"}} - [view {:style {:flex 1 :justify-content :center :align-items :center}} - [view {:style {:background-color :white :width 56 :height 56 :border-radius 28 :align-items :center :justify-content :center}} - [icon {:key :main-icons/check :color "#4360df"}]] - [text {:style {:color :white :font-size 17 :margin-top 16}} "Transaction Confirmed"] - [view {:style {:height 1 :background-color :white :opacity 0.2}}] - [touchable-opacity {:on-press [store/put {:key "completed?" :value false}]} - [text {:style {:color :white :font-size 15 :margin-top 16}} "Back to exchange"]]] - [view {:style {:flex 1 :background-color :white :padding-horizontal 16 :padding-top 23}} - [text {:style {:font-size 15}} "You exchanged"] - [view {:style {:border-color "#EEF2F5" :border-radius 8 :border-width 1 :flex-direction :row :margin-top 6 :padding 15 :align-items :center}} - [image {:source source1 :style {:width 30 :height 30}}] - [text {:style {:flex 1 :font-size 15 :margin-left 12}} tokenname1]] - [view {:style {:flex 1}}] - [text {:style {:font-size 15}} "You received"] - [view {:style {:border-color "#EEF2F5" :border-radius 8 :border-width 1 :flex-direction :row :margin-top 6 :padding 15 :align-items :center}} - [image {:source source2 :style {:width 30 :height 30}}] - [text {:style {:flex 1 :font-size 15 :margin-left 12}} tokenname2]] - [view {:style {:flex 1}}]]]) - - views/transaction-panel - (let [m properties - {status :status} [store/get {:key "RECEIPT"}]] - (if status - [transaction-completed-panel m] - [transaction-pending-panel m])) - - views/kyber-panel - {:component-will-mount [store/clear-all] - :view - (let [{address :address} properties - visible-tokens [wallet/tokens {:visible true}] - tokens [wallet/tokens] - {tokenname1 :selection source1 :source src-symbol :symbol} [store/get {:key "SRC"}] - {tokenname2 :selection source2 :source dest-symbol :symbol} [store/get {:key "DEST"}] - completed? [store/get {:key "completed?"}] - amount [store/get {:key "AMOUNT"}] - amount-to-receive-in-wei [store/get {:key "AMOUNT-TO-RECEIVE"}] - {[expected slippage-in-wei] :value} [store/get {:key "RATE"}] - {slippage :amount} [wallet/token {:token "ETH" :amount-in-wei slippage-in-wei}] ;; Kyber returns slippage with 18 decimals - {amount-to-receive :amount} [wallet/token {:token "ETH" :amount-in-wei amount-to-receive-in-wei}] - {src-decimals :decimals src-address :address amount-in-wei :amount-in-wei} [wallet/token {:token src-symbol :amount amount}] - {dest-decimals :decimals dest-address :address} [wallet/token {:token dest-symbol}] - {balance :value} [wallet/balance {:token src-symbol}]] - (if completed? - [transaction-panel {:source1 source1 :source2 source2 :tokenname1 tokenname1 :tokenname2 tokenname2 :address completed?}] - [view {:style {:flex 1 :background-color "#4360df" :padding-horizontal 16 :padding-top 20}} - [scroll-view {:keyboard-should-persist-taps :always} - [view {:style {:flex 1}} - [text {:style {:color :white :font-size 15}} "I want to exchange"] - [touchable-opacity {:on-press [selection-screen {:title "Choose asset" :items visible-tokens :on-select [on-src-rate-params-change {:key "SRC" :amount amount :dest-address dest-address :amount-in-wei amount-in-wei}] - :render [render-token] :extractor-key :name}]} - [view {:style {:flex-direction :row :margin-top 8 :border-radius 8 :height 52 :background-color "rgba(255,255,255,0.1)" - :align-items :center :padding-horizontal 14}} - [image {:source source1 :style {:width 30 :height 30}}] - (if tokenname1 - [view {:style {:flex 1 :flex-direction :column}} - [view {:style {:flex-direction :row}} - [text {:style {:margin-left 16 :color :white :font-size 15}} tokenname1] - [text {:style {:margin-left 16 :color :white :font-size 15 :opacity 0.6}} src-symbol]] - [text {:style {:margin-left 16 :color :white :font-size 15 :opacity 0.6}} "Available: ${balance}"]] - [text {:style {:flex 1 :color :white :margin-left 12}} "Select token"]) - [icon {:key :main-icons/next :color :white}]]] - [text {:style {:color :white :font-size 15 :margin-top 28}} "Amount"] - [view {:style {:flex-direction :row :margin-top 8 :border-radius 8 :height 52 :background-color "rgba(255,255,255,0.1)" - :align-items :center :padding-horizontal 14 :margin-bottom 32}} - [input {:style {:color :white :flex 1} :placeholder "Specify amount..." :placeholder-text-color "rgba(255,255,255,0.6)" :selection-color :white :keyboard-type :decimal-pad - :on-change [store-amount {:amount amount :src-address src-address :dest-address dest-address}]}]] - [view {:style {:flex 1}}] - [view {:style {:height 1 :background-color :white :opacity 0.2}}] - [view {:style {:flex 1}}] - [text {:style {:color :white :font-size 15 :margin-top 32}} "I want to recieve"] - [touchable-opacity {:on-press [selection-screen {:title "Choose asset" :items tokens :on-select [on-dest-rate-params-change {:key "DEST" :amount amount :src-address src-address :amount-in-wei amount-in-wei}] - :render [render-token] :extractor-key :name}]} - [view {:style {:flex-direction :row :margin-top 8 :border-radius 8 :height 52 :background-color "rgba(255,255,255,0.1)" - :align-items :center :padding-horizontal 14}} - (when source2 - [image {:source source2 :style {:width 30 :height 30}}]) - (if tokenname2 - [view {:style {:flex 1 :flex-direction :row}} - [text {:style {:margin-left 16 :color :white :font-size 15}} tokenname2] - [text {:style {:margin-left 16 :color :white :font-size 15 :opacity 0.6}} dest-symbol]] - [text {:style {:flex 1 :color :white :margin-left 12}} "Select token"]) - [icon {:key :main-icons/next :color :white}]]] - [text {:style {:color :white :opacity 0.6 :font-size 15 :margin-top 28}} "Amount to receive"] - [view {:style {:flex-direction :row :margin-top 8 :border-radius 8 :height 52 :border-color "rgba(255,255,255,0.1)" :border-width 1 - :align-items :center :padding-horizontal 14}} - [text {:style {:color :white}} amount-to-receive]] - (when slippage - [text {:style {:margin-top 16 :color :white :opacity 0.6}} "1 ${src-symbol} = ${slippage} ${dest-symbol}"]) - [view {:style {:flex 1}}] - [text {:style {:color :white :opacity 0.6}} "Powered by Kyber Network"] - [view {:style {:height 1 :background-color :white :opacity 0.2}}]]] - (if slippage - [touchable-opacity {:on-press [approve {:slippage slippage-in-wei :amount-in-wei amount-in-wei - :src-address src-address :dest-address dest-address :address address}]} - [sign-to-confirm {:color :white}]] - [sign-to-confirm {:color "#FFFFFF66"}])]))} - - hooks/wallet.settings.kyber - {:label "Exchange Assets" - :view [kyber-panel]}} diff --git a/resources/icons/indicator-big.svg b/resources/icons/indicator-big.svg deleted file mode 100644 index 54c57ae8c1..0000000000 --- a/resources/icons/indicator-big.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/indicator-middle.svg b/resources/icons/indicator-middle.svg deleted file mode 100644 index c4b960da70..0000000000 --- a/resources/icons/indicator-middle.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/indicator-small.svg b/resources/icons/indicator-small.svg deleted file mode 100644 index 583e688b08..0000000000 --- a/resources/icons/indicator-small.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/logo.svg b/resources/icons/logo.svg deleted file mode 100644 index aa3fcd1986..0000000000 --- a/resources/icons/logo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/resources/icons/main/add.svg b/resources/icons/main/add.svg deleted file mode 100644 index 7c17e5e067..0000000000 --- a/resources/icons/main/add.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/add_contact.svg b/resources/icons/main/add_contact.svg deleted file mode 100644 index c7746afb46..0000000000 --- a/resources/icons/main/add_contact.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/address.svg b/resources/icons/main/address.svg deleted file mode 100644 index c91f66a9c2..0000000000 --- a/resources/icons/main/address.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/advanced_settings.svg b/resources/icons/main/advanced_settings.svg deleted file mode 100644 index 0bd25df99f..0000000000 --- a/resources/icons/main/advanced_settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/arrow_left.svg b/resources/icons/main/arrow_left.svg deleted file mode 100644 index 9733ba6bde..0000000000 --- a/resources/icons/main/arrow_left.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/arrow_right.svg b/resources/icons/main/arrow_right.svg deleted file mode 100644 index 19f33db6ca..0000000000 --- a/resources/icons/main/arrow_right.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/arrow_up.svg b/resources/icons/main/arrow_up.svg deleted file mode 100644 index 4ea427a891..0000000000 --- a/resources/icons/main/arrow_up.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/back.svg b/resources/icons/main/back.svg deleted file mode 100644 index 5d2e1a934e..0000000000 --- a/resources/icons/main/back.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/backspace.svg b/resources/icons/main/backspace.svg deleted file mode 100644 index 036b2c8f2c..0000000000 --- a/resources/icons/main/backspace.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/browser.svg b/resources/icons/main/browser.svg deleted file mode 100644 index ae4e99dc77..0000000000 --- a/resources/icons/main/browser.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/browser_home.svg b/resources/icons/main/browser_home.svg deleted file mode 100644 index 7c26722b2e..0000000000 --- a/resources/icons/main/browser_home.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/camera.svg b/resources/icons/main/camera.svg deleted file mode 100644 index 01c47994ae..0000000000 --- a/resources/icons/main/camera.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/cancel.svg b/resources/icons/main/cancel.svg deleted file mode 100644 index aed62c601e..0000000000 --- a/resources/icons/main/cancel.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/change.svg b/resources/icons/main/change.svg deleted file mode 100644 index a3bfbbedc0..0000000000 --- a/resources/icons/main/change.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/check.svg b/resources/icons/main/check.svg deleted file mode 100644 index 62b6036709..0000000000 --- a/resources/icons/main/check.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/close.svg b/resources/icons/main/close.svg deleted file mode 100644 index 26cae722b9..0000000000 --- a/resources/icons/main/close.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/commands.svg b/resources/icons/main/commands.svg deleted file mode 100644 index 45a89004b7..0000000000 --- a/resources/icons/main/commands.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/copy.svg b/resources/icons/main/copy.svg deleted file mode 100644 index 0bcc337843..0000000000 --- a/resources/icons/main/copy.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/dapp.svg b/resources/icons/main/dapp.svg deleted file mode 100644 index 10cef63f93..0000000000 --- a/resources/icons/main/dapp.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/delete.svg b/resources/icons/main/delete.svg deleted file mode 100644 index d112f5133b..0000000000 --- a/resources/icons/main/delete.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/desktop.svg b/resources/icons/main/desktop.svg deleted file mode 100644 index 9bf509ed5b..0000000000 --- a/resources/icons/main/desktop.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/dropdown.svg b/resources/icons/main/dropdown.svg deleted file mode 100644 index bc9493d10d..0000000000 --- a/resources/icons/main/dropdown.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/dropdown_up.svg b/resources/icons/main/dropdown_up.svg deleted file mode 100644 index 059ac4e3ce..0000000000 --- a/resources/icons/main/dropdown_up.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/edit.svg b/resources/icons/main/edit.svg deleted file mode 100644 index 81c6f98875..0000000000 --- a/resources/icons/main/edit.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/filter.svg b/resources/icons/main/filter.svg deleted file mode 100644 index 0bae6ca562..0000000000 --- a/resources/icons/main/filter.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/flash_active.svg b/resources/icons/main/flash_active.svg deleted file mode 100644 index 3d7e83ad85..0000000000 --- a/resources/icons/main/flash_active.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/flash_inactive.svg b/resources/icons/main/flash_inactive.svg deleted file mode 100644 index 07fb2890b3..0000000000 --- a/resources/icons/main/flash_inactive.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/group_chat.svg b/resources/icons/main/group_chat.svg deleted file mode 100644 index 7f4b624c19..0000000000 --- a/resources/icons/main/group_chat.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/resources/icons/main/help.svg b/resources/icons/main/help.svg deleted file mode 100644 index 445a86564c..0000000000 --- a/resources/icons/main/help.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/history.svg b/resources/icons/main/history.svg deleted file mode 100644 index c00cb2d5a9..0000000000 --- a/resources/icons/main/history.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/home.svg b/resources/icons/main/home.svg deleted file mode 100644 index 48d67e75a9..0000000000 --- a/resources/icons/main/home.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/in_contacts.svg b/resources/icons/main/in_contacts.svg deleted file mode 100644 index 9e4533a75d..0000000000 --- a/resources/icons/main/in_contacts.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/info.svg b/resources/icons/main/info.svg deleted file mode 100644 index 35d69f2d96..0000000000 --- a/resources/icons/main/info.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/keycard.svg b/resources/icons/main/keycard.svg deleted file mode 100644 index 970cc53bd5..0000000000 --- a/resources/icons/main/keycard.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/resources/icons/main/language.svg b/resources/icons/main/language.svg deleted file mode 100644 index 997a73d761..0000000000 --- a/resources/icons/main/language.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/resources/icons/main/link.svg b/resources/icons/main/link.svg deleted file mode 100644 index ecd501627f..0000000000 --- a/resources/icons/main/link.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/logout.svg b/resources/icons/main/logout.svg deleted file mode 100644 index 95fe83aa75..0000000000 --- a/resources/icons/main/logout.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/mailserver.svg b/resources/icons/main/mailserver.svg deleted file mode 100644 index 121c32a605..0000000000 --- a/resources/icons/main/mailserver.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/make_admin.svg b/resources/icons/main/make_admin.svg deleted file mode 100644 index 21dcf666c2..0000000000 --- a/resources/icons/main/make_admin.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/max.svg b/resources/icons/main/max.svg deleted file mode 100644 index a9f3943143..0000000000 --- a/resources/icons/main/max.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/message.svg b/resources/icons/main/message.svg deleted file mode 100644 index f37dcb899f..0000000000 --- a/resources/icons/main/message.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/mobile.svg b/resources/icons/main/mobile.svg deleted file mode 100644 index f9e05cd242..0000000000 --- a/resources/icons/main/mobile.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/more.svg b/resources/icons/main/more.svg deleted file mode 100644 index 02ebbcb6f0..0000000000 --- a/resources/icons/main/more.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/network.svg b/resources/icons/main/network.svg deleted file mode 100644 index 184b879453..0000000000 --- a/resources/icons/main/network.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/next.svg b/resources/icons/main/next.svg deleted file mode 100644 index 57763b4d2f..0000000000 --- a/resources/icons/main/next.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/notification.svg b/resources/icons/main/notification.svg deleted file mode 100644 index f8e5969ce7..0000000000 --- a/resources/icons/main/notification.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/password.svg b/resources/icons/main/password.svg deleted file mode 100644 index d146184741..0000000000 --- a/resources/icons/main/password.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/paste.svg b/resources/icons/main/paste.svg deleted file mode 100644 index c3aec18714..0000000000 --- a/resources/icons/main/paste.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/photo.svg b/resources/icons/main/photo.svg deleted file mode 100644 index 4f5038a671..0000000000 --- a/resources/icons/main/photo.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/private_chat.svg b/resources/icons/main/private_chat.svg deleted file mode 100644 index 5ab68abf59..0000000000 --- a/resources/icons/main/private_chat.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/profile.svg b/resources/icons/main/profile.svg deleted file mode 100644 index 028d94c943..0000000000 --- a/resources/icons/main/profile.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/public_chat.svg b/resources/icons/main/public_chat.svg deleted file mode 100644 index b9069737f9..0000000000 --- a/resources/icons/main/public_chat.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/qr.svg b/resources/icons/main/qr.svg deleted file mode 100644 index 0a6720b053..0000000000 --- a/resources/icons/main/qr.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/receive.svg b/resources/icons/main/receive.svg deleted file mode 100644 index 03c415b8f5..0000000000 --- a/resources/icons/main/receive.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/refresh.svg b/resources/icons/main/refresh.svg deleted file mode 100644 index 2356b1b92b..0000000000 --- a/resources/icons/main/refresh.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/remove_contact.svg b/resources/icons/main/remove_contact.svg deleted file mode 100644 index 8f4a46af13..0000000000 --- a/resources/icons/main/remove_contact.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/reply.svg b/resources/icons/main/reply.svg deleted file mode 100644 index 99e06ae55e..0000000000 --- a/resources/icons/main/reply.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/search.svg b/resources/icons/main/search.svg deleted file mode 100644 index 0510c866cb..0000000000 --- a/resources/icons/main/search.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/security.svg b/resources/icons/main/security.svg deleted file mode 100644 index 075e596a00..0000000000 --- a/resources/icons/main/security.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/send.svg b/resources/icons/main/send.svg deleted file mode 100644 index 24b34e2c79..0000000000 --- a/resources/icons/main/send.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/settings.svg b/resources/icons/main/settings.svg deleted file mode 100644 index 81bc39f616..0000000000 --- a/resources/icons/main/settings.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/share.svg b/resources/icons/main/share.svg deleted file mode 100644 index d11dbf615b..0000000000 --- a/resources/icons/main/share.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/stickers.svg b/resources/icons/main/stickers.svg deleted file mode 100644 index 19a98009fd..0000000000 --- a/resources/icons/main/stickers.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/text.svg b/resources/icons/main/text.svg deleted file mode 100644 index 6a965f6d69..0000000000 --- a/resources/icons/main/text.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/token.svg b/resources/icons/main/token.svg deleted file mode 100644 index 8c64e54be5..0000000000 --- a/resources/icons/main/token.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/resources/icons/main/tribute_to_talk.svg b/resources/icons/main/tribute_to_talk.svg deleted file mode 100644 index 673bba0636..0000000000 --- a/resources/icons/main/tribute_to_talk.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/two_arrows.svg b/resources/icons/main/two_arrows.svg deleted file mode 100644 index 8ce7771792..0000000000 --- a/resources/icons/main/two_arrows.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/main/user_profile.svg b/resources/icons/main/user_profile.svg deleted file mode 100644 index 756d9ae13a..0000000000 --- a/resources/icons/main/user_profile.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/username.svg b/resources/icons/main/username.svg deleted file mode 100644 index 7bdc3b5134..0000000000 --- a/resources/icons/main/username.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/wallet.svg b/resources/icons/main/wallet.svg deleted file mode 100644 index 8d7acef0ff..0000000000 --- a/resources/icons/main/wallet.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/main/warning.svg b/resources/icons/main/warning.svg deleted file mode 100644 index e0b736e111..0000000000 --- a/resources/icons/main/warning.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/main/watch.svg b/resources/icons/main/watch.svg deleted file mode 100644 index 56eb968048..0000000000 --- a/resources/icons/main/watch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/resources/icons/stickers/recent.svg b/resources/icons/stickers/recent.svg deleted file mode 100644 index 859d602dda..0000000000 --- a/resources/icons/stickers/recent.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/stickers/stickers_big.svg b/resources/icons/stickers/stickers_big.svg deleted file mode 100644 index 1ef6966d96..0000000000 --- a/resources/icons/stickers/stickers_big.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_arrow_down.svg b/resources/icons/tiny/tiny_arrow_down.svg deleted file mode 100644 index 489cef5126..0000000000 --- a/resources/icons/tiny/tiny_arrow_down.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_check.svg b/resources/icons/tiny/tiny_check.svg deleted file mode 100644 index 558a015a14..0000000000 --- a/resources/icons/tiny/tiny_check.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_external.svg b/resources/icons/tiny/tiny_external.svg deleted file mode 100644 index eb5c6328c0..0000000000 --- a/resources/icons/tiny/tiny_external.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/icons/tiny/tiny_group.svg b/resources/icons/tiny/tiny_group.svg deleted file mode 100644 index 495fe1e05d..0000000000 --- a/resources/icons/tiny/tiny_group.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_lock.svg b/resources/icons/tiny/tiny_lock.svg deleted file mode 100644 index 21d0250653..0000000000 --- a/resources/icons/tiny/tiny_lock.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_lock_broken.svg b/resources/icons/tiny/tiny_lock_broken.svg deleted file mode 100644 index 95b22c8331..0000000000 --- a/resources/icons/tiny/tiny_lock_broken.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_new_contact.svg b/resources/icons/tiny/tiny_new_contact.svg deleted file mode 100644 index ea30ac119e..0000000000 --- a/resources/icons/tiny/tiny_new_contact.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_pending.svg b/resources/icons/tiny/tiny_pending.svg deleted file mode 100644 index 36f8145093..0000000000 --- a/resources/icons/tiny/tiny_pending.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/resources/icons/tiny/tiny_public.svg b/resources/icons/tiny/tiny_public.svg deleted file mode 100644 index fd000fea7d..0000000000 --- a/resources/icons/tiny/tiny_public.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_reply.svg b/resources/icons/tiny/tiny_reply.svg deleted file mode 100644 index fd8e05b0c7..0000000000 --- a/resources/icons/tiny/tiny_reply.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tiny_settings.svg b/resources/icons/tiny/tiny_settings.svg deleted file mode 100644 index 7415e9766e..0000000000 --- a/resources/icons/tiny/tiny_settings.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tiny/tribute_to_talk.svg b/resources/icons/tiny/tribute_to_talk.svg deleted file mode 100644 index 3686220ca8..0000000000 --- a/resources/icons/tiny/tribute_to_talk.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/icons/tooltip-triangle.svg b/resources/icons/tooltip-triangle.svg deleted file mode 100644 index 31f85a7360..0000000000 --- a/resources/icons/tooltip-triangle.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/resources/images/contacts/etherman.png b/resources/images/contacts/etherman.png deleted file mode 100644 index 2bebacd7ee..0000000000 Binary files a/resources/images/contacts/etherman.png and /dev/null differ diff --git a/resources/mapview/images/layers-2x.png b/resources/mapview/images/layers-2x.png deleted file mode 100644 index 200c333dca..0000000000 Binary files a/resources/mapview/images/layers-2x.png and /dev/null differ diff --git a/resources/mapview/images/layers.png b/resources/mapview/images/layers.png deleted file mode 100644 index 1a72e5784b..0000000000 Binary files a/resources/mapview/images/layers.png and /dev/null differ diff --git a/resources/mapview/images/marker-icon-2x.png b/resources/mapview/images/marker-icon-2x.png deleted file mode 100644 index 88f9e50188..0000000000 Binary files a/resources/mapview/images/marker-icon-2x.png and /dev/null differ diff --git a/resources/mapview/images/marker-icon.png b/resources/mapview/images/marker-icon.png deleted file mode 100644 index 950edf2467..0000000000 Binary files a/resources/mapview/images/marker-icon.png and /dev/null differ diff --git a/resources/mapview/images/marker-shadow.png b/resources/mapview/images/marker-shadow.png deleted file mode 100644 index 9fd2979532..0000000000 Binary files a/resources/mapview/images/marker-shadow.png and /dev/null differ diff --git a/resources/mapview/leaflet.css b/resources/mapview/leaflet.css deleted file mode 100644 index 70802f3687..0000000000 --- a/resources/mapview/leaflet.css +++ /dev/null @@ -1,635 +0,0 @@ -/* required styles */ - -.leaflet-pane, -.leaflet-tile, -.leaflet-marker-icon, -.leaflet-marker-shadow, -.leaflet-tile-container, -.leaflet-pane > svg, -.leaflet-pane > canvas, -.leaflet-zoom-box, -.leaflet-image-layer, -.leaflet-layer { - position: absolute; - left: 0; - top: 0; - } -.leaflet-container { - overflow: hidden; - } -.leaflet-tile, -.leaflet-marker-icon, -.leaflet-marker-shadow { - -webkit-user-select: none; - -moz-user-select: none; - user-select: none; - -webkit-user-drag: none; - } -/* Safari renders non-retina tile on retina better with this, but Chrome is worse */ -.leaflet-safari .leaflet-tile { - image-rendering: -webkit-optimize-contrast; - } -/* hack that prevents hw layers "stretching" when loading new tiles */ -.leaflet-safari .leaflet-tile-container { - width: 1600px; - height: 1600px; - -webkit-transform-origin: 0 0; - } -.leaflet-marker-icon, -.leaflet-marker-shadow { - display: block; - } -/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */ -/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */ -.leaflet-container .leaflet-overlay-pane svg, -.leaflet-container .leaflet-marker-pane img, -.leaflet-container .leaflet-shadow-pane img, -.leaflet-container .leaflet-tile-pane img, -.leaflet-container img.leaflet-image-layer, -.leaflet-container .leaflet-tile { - max-width: none !important; - max-height: none !important; - } - -.leaflet-container.leaflet-touch-zoom { - -ms-touch-action: pan-x pan-y; - touch-action: pan-x pan-y; - } -.leaflet-container.leaflet-touch-drag { - -ms-touch-action: pinch-zoom; - /* Fallback for FF which doesn't support pinch-zoom */ - touch-action: none; - touch-action: pinch-zoom; -} -.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom { - -ms-touch-action: none; - touch-action: none; -} -.leaflet-container { - -webkit-tap-highlight-color: transparent; -} -.leaflet-container a { - -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4); -} -.leaflet-tile { - filter: inherit; - visibility: hidden; - } -.leaflet-tile-loaded { - visibility: inherit; - } -.leaflet-zoom-box { - width: 0; - height: 0; - -moz-box-sizing: border-box; - box-sizing: border-box; - z-index: 800; - } -/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */ -.leaflet-overlay-pane svg { - -moz-user-select: none; - } - -.leaflet-pane { z-index: 400; } - -.leaflet-tile-pane { z-index: 200; } -.leaflet-overlay-pane { z-index: 400; } -.leaflet-shadow-pane { z-index: 500; } -.leaflet-marker-pane { z-index: 600; } -.leaflet-tooltip-pane { z-index: 650; } -.leaflet-popup-pane { z-index: 700; } - -.leaflet-map-pane canvas { z-index: 100; } -.leaflet-map-pane svg { z-index: 200; } - -.leaflet-vml-shape { - width: 1px; - height: 1px; - } -.lvml { - behavior: url(#default#VML); - display: inline-block; - position: absolute; - } - - -/* control positioning */ - -.leaflet-control { - position: relative; - z-index: 800; - pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */ - pointer-events: auto; - } -.leaflet-top, -.leaflet-bottom { - position: absolute; - z-index: 1000; - pointer-events: none; - } -.leaflet-top { - top: 0; - } -.leaflet-right { - right: 0; - } -.leaflet-bottom { - bottom: 0; - } -.leaflet-left { - left: 0; - } -.leaflet-control { - float: left; - clear: both; - } -.leaflet-right .leaflet-control { - float: right; - } -.leaflet-top .leaflet-control { - margin-top: 10px; - } -.leaflet-bottom .leaflet-control { - margin-bottom: 10px; - } -.leaflet-left .leaflet-control { - margin-left: 10px; - } -.leaflet-right .leaflet-control { - margin-right: 10px; - } - - -/* zoom and fade animations */ - -.leaflet-fade-anim .leaflet-tile { - will-change: opacity; - } -.leaflet-fade-anim .leaflet-popup { - opacity: 0; - -webkit-transition: opacity 0.2s linear; - -moz-transition: opacity 0.2s linear; - transition: opacity 0.2s linear; - } -.leaflet-fade-anim .leaflet-map-pane .leaflet-popup { - opacity: 1; - } -.leaflet-zoom-animated { - -webkit-transform-origin: 0 0; - -ms-transform-origin: 0 0; - transform-origin: 0 0; - } -.leaflet-zoom-anim .leaflet-zoom-animated { - will-change: transform; - } -.leaflet-zoom-anim .leaflet-zoom-animated { - -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1); - -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1); - transition: transform 0.25s cubic-bezier(0,0,0.25,1); - } -.leaflet-zoom-anim .leaflet-tile, -.leaflet-pan-anim .leaflet-tile { - -webkit-transition: none; - -moz-transition: none; - transition: none; - } - -.leaflet-zoom-anim .leaflet-zoom-hide { - visibility: hidden; - } - - -/* cursors */ - -.leaflet-interactive { - cursor: pointer; - } -.leaflet-grab { - cursor: -webkit-grab; - cursor: -moz-grab; - cursor: grab; - } -.leaflet-crosshair, -.leaflet-crosshair .leaflet-interactive { - cursor: crosshair; - } -.leaflet-popup-pane, -.leaflet-control { - cursor: auto; - } -.leaflet-dragging .leaflet-grab, -.leaflet-dragging .leaflet-grab .leaflet-interactive, -.leaflet-dragging .leaflet-marker-draggable { - cursor: move; - cursor: -webkit-grabbing; - cursor: -moz-grabbing; - cursor: grabbing; - } - -/* marker & overlays interactivity */ -.leaflet-marker-icon, -.leaflet-marker-shadow, -.leaflet-image-layer, -.leaflet-pane > svg path, -.leaflet-tile-container { - pointer-events: none; - } - -.leaflet-marker-icon.leaflet-interactive, -.leaflet-image-layer.leaflet-interactive, -.leaflet-pane > svg path.leaflet-interactive { - pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */ - pointer-events: auto; - } - -/* visual tweaks */ - -.leaflet-container { - background: #ddd; - outline: 0; - } -.leaflet-container a { - color: #0078A8; - } -.leaflet-container a.leaflet-active { - outline: 2px solid orange; - } -.leaflet-zoom-box { - border: 2px dotted #38f; - background: rgba(255,255,255,0.5); - } - - -/* general typography */ -.leaflet-container { - font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif; - } - - -/* general toolbar styles */ - -.leaflet-bar { - box-shadow: 0 1px 5px rgba(0,0,0,0.65); - border-radius: 4px; - } -.leaflet-bar a, -.leaflet-bar a:hover { - background-color: #fff; - border-bottom: 1px solid #ccc; - width: 26px; - height: 26px; - line-height: 26px; - display: block; - text-align: center; - text-decoration: none; - color: black; - } -.leaflet-bar a, -.leaflet-control-layers-toggle { - background-position: 50% 50%; - background-repeat: no-repeat; - display: block; - } -.leaflet-bar a:hover { - background-color: #f4f4f4; - } -.leaflet-bar a:first-child { - border-top-left-radius: 4px; - border-top-right-radius: 4px; - } -.leaflet-bar a:last-child { - border-bottom-left-radius: 4px; - border-bottom-right-radius: 4px; - border-bottom: none; - } -.leaflet-bar a.leaflet-disabled { - cursor: default; - background-color: #f4f4f4; - color: #bbb; - } - -.leaflet-touch .leaflet-bar a { - width: 30px; - height: 30px; - line-height: 30px; - } -.leaflet-touch .leaflet-bar a:first-child { - border-top-left-radius: 2px; - border-top-right-radius: 2px; - } -.leaflet-touch .leaflet-bar a:last-child { - border-bottom-left-radius: 2px; - border-bottom-right-radius: 2px; - } - -/* zoom control */ - -.leaflet-control-zoom-in, -.leaflet-control-zoom-out { - font: bold 18px 'Lucida Console', Monaco, monospace; - text-indent: 1px; - } - -.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out { - font-size: 22px; - } - - -/* layers control */ - -.leaflet-control-layers { - box-shadow: 0 1px 5px rgba(0,0,0,0.4); - background: #fff; - border-radius: 5px; - } -.leaflet-control-layers-toggle { - background-image: url(images/layers.png); - width: 36px; - height: 36px; - } -.leaflet-retina .leaflet-control-layers-toggle { - background-image: url(images/layers-2x.png); - background-size: 26px 26px; - } -.leaflet-touch .leaflet-control-layers-toggle { - width: 44px; - height: 44px; - } -.leaflet-control-layers .leaflet-control-layers-list, -.leaflet-control-layers-expanded .leaflet-control-layers-toggle { - display: none; - } -.leaflet-control-layers-expanded .leaflet-control-layers-list { - display: block; - position: relative; - } -.leaflet-control-layers-expanded { - padding: 6px 10px 6px 6px; - color: #333; - background: #fff; - } -.leaflet-control-layers-scrollbar { - overflow-y: scroll; - overflow-x: hidden; - padding-right: 5px; - } -.leaflet-control-layers-selector { - margin-top: 2px; - position: relative; - top: 1px; - } -.leaflet-control-layers label { - display: block; - } -.leaflet-control-layers-separator { - height: 0; - border-top: 1px solid #ddd; - margin: 5px -10px 5px -6px; - } - -/* Default icon URLs */ -.leaflet-default-icon-path { - background-image: url(images/marker-icon.png); - } - - -/* attribution and scale controls */ - -.leaflet-container .leaflet-control-attribution { - background: #fff; - background: rgba(255, 255, 255, 0.7); - margin: 0; - } -.leaflet-control-attribution, -.leaflet-control-scale-line { - padding: 0 5px; - color: #333; - } -.leaflet-control-attribution a { - text-decoration: none; - } -.leaflet-control-attribution a:hover { - text-decoration: underline; - } -.leaflet-container .leaflet-control-attribution, -.leaflet-container .leaflet-control-scale { - font-size: 11px; - } -.leaflet-left .leaflet-control-scale { - margin-left: 5px; - } -.leaflet-bottom .leaflet-control-scale { - margin-bottom: 5px; - } -.leaflet-control-scale-line { - border: 2px solid #777; - border-top: none; - line-height: 1.1; - padding: 2px 5px 1px; - font-size: 11px; - white-space: nowrap; - overflow: hidden; - -moz-box-sizing: border-box; - box-sizing: border-box; - - background: #fff; - background: rgba(255, 255, 255, 0.5); - } -.leaflet-control-scale-line:not(:first-child) { - border-top: 2px solid #777; - border-bottom: none; - margin-top: -2px; - } -.leaflet-control-scale-line:not(:first-child):not(:last-child) { - border-bottom: 2px solid #777; - } - -.leaflet-touch .leaflet-control-attribution, -.leaflet-touch .leaflet-control-layers, -.leaflet-touch .leaflet-bar { - box-shadow: none; - } -.leaflet-touch .leaflet-control-layers, -.leaflet-touch .leaflet-bar { - border: 2px solid rgba(0,0,0,0.2); - background-clip: padding-box; - } - - -/* popup */ - -.leaflet-popup { - position: absolute; - text-align: center; - margin-bottom: 20px; - } -.leaflet-popup-content-wrapper { - padding: 1px; - text-align: left; - border-radius: 12px; - } -.leaflet-popup-content { - margin: 13px 19px; - line-height: 1.4; - } -.leaflet-popup-content p { - margin: 18px 0; - } -.leaflet-popup-tip-container { - width: 40px; - height: 20px; - position: absolute; - left: 50%; - margin-left: -20px; - overflow: hidden; - pointer-events: none; - } -.leaflet-popup-tip { - width: 17px; - height: 17px; - padding: 1px; - - margin: -10px auto 0; - - -webkit-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -ms-transform: rotate(45deg); - transform: rotate(45deg); - } -.leaflet-popup-content-wrapper, -.leaflet-popup-tip { - background: white; - color: #333; - box-shadow: 0 3px 14px rgba(0,0,0,0.4); - } -.leaflet-container a.leaflet-popup-close-button { - position: absolute; - top: 0; - right: 0; - padding: 4px 4px 0 0; - border: none; - text-align: center; - width: 18px; - height: 14px; - font: 16px/14px Tahoma, Verdana, sans-serif; - color: #c3c3c3; - text-decoration: none; - font-weight: bold; - background: transparent; - } -.leaflet-container a.leaflet-popup-close-button:hover { - color: #999; - } -.leaflet-popup-scrolled { - overflow: auto; - border-bottom: 1px solid #ddd; - border-top: 1px solid #ddd; - } - -.leaflet-oldie .leaflet-popup-content-wrapper { - zoom: 1; - } -.leaflet-oldie .leaflet-popup-tip { - width: 24px; - margin: 0 auto; - - -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)"; - filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678); - } -.leaflet-oldie .leaflet-popup-tip-container { - margin-top: -1px; - } - -.leaflet-oldie .leaflet-control-zoom, -.leaflet-oldie .leaflet-control-layers, -.leaflet-oldie .leaflet-popup-content-wrapper, -.leaflet-oldie .leaflet-popup-tip { - border: 1px solid #999; - } - - -/* div icon */ - -.leaflet-div-icon { - background: #fff; - border: 1px solid #666; - } - - -/* Tooltip */ -/* Base styles for the element that has a tooltip */ -.leaflet-tooltip { - position: absolute; - padding: 6px; - background-color: #fff; - border: 1px solid #fff; - border-radius: 3px; - color: #222; - white-space: nowrap; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - pointer-events: none; - box-shadow: 0 1px 3px rgba(0,0,0,0.4); - } -.leaflet-tooltip.leaflet-clickable { - cursor: pointer; - pointer-events: auto; - } -.leaflet-tooltip-top:before, -.leaflet-tooltip-bottom:before, -.leaflet-tooltip-left:before, -.leaflet-tooltip-right:before { - position: absolute; - pointer-events: none; - border: 6px solid transparent; - background: transparent; - content: ""; - } - -/* Directions */ - -.leaflet-tooltip-bottom { - margin-top: 6px; -} -.leaflet-tooltip-top { - margin-top: -6px; -} -.leaflet-tooltip-bottom:before, -.leaflet-tooltip-top:before { - left: 50%; - margin-left: -6px; - } -.leaflet-tooltip-top:before { - bottom: 0; - margin-bottom: -12px; - border-top-color: #fff; - } -.leaflet-tooltip-bottom:before { - top: 0; - margin-top: -12px; - margin-left: -6px; - border-bottom-color: #fff; - } -.leaflet-tooltip-left { - margin-left: -6px; -} -.leaflet-tooltip-right { - margin-left: 6px; -} -.leaflet-tooltip-left:before, -.leaflet-tooltip-right:before { - top: 50%; - margin-top: -6px; - } -.leaflet-tooltip-left:before { - right: 0; - margin-right: -12px; - border-left-color: #fff; - } -.leaflet-tooltip-right:before { - left: 0; - margin-left: -12px; - border-right-color: #fff; - } diff --git a/resources/mapview/leaflet.js b/resources/mapview/leaflet.js deleted file mode 100644 index 576a90ee63..0000000000 --- a/resources/mapview/leaflet.js +++ /dev/null @@ -1,5 +0,0 @@ -/* @preserve - * Leaflet 1.4.0+Detached: 3337f36d2a2d2b33946779057619b31f674ff5dc.3337f36, a JS library for interactive maps. http://leafletjs.com - * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */ -!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i(t.L={})}(this,function(t){"use strict";function i(t){var i,e,n,o;for(e=1,n=arguments.length;e=0}function A(t,i,e,n){return"touchstart"===i?O(t,e,n):"touchmove"===i?W(t,e,n):"touchend"===i&&H(t,e,n),this}function I(t,i,e){var n=t["_leaflet_"+i+e];return"touchstart"===i?t.removeEventListener(te,n,!1):"touchmove"===i?t.removeEventListener(ie,n,!1):"touchend"===i&&(t.removeEventListener(ee,n,!1),t.removeEventListener(ne,n,!1)),this}function O(t,i,n){var o=e(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(oe.indexOf(t.target.tagName)<0))return;Pt(t)}j(t,i)});t["_leaflet_touchstart"+n]=o,t.addEventListener(te,o,!1),re||(document.documentElement.addEventListener(te,R,!0),document.documentElement.addEventListener(ie,N,!0),document.documentElement.addEventListener(ee,D,!0),document.documentElement.addEventListener(ne,D,!0),re=!0)}function R(t){se[t.pointerId]=t,ae++}function N(t){se[t.pointerId]&&(se[t.pointerId]=t)}function D(t){delete se[t.pointerId],ae--}function j(t,i){t.touches=[];for(var e in se)t.touches.push(se[e]);t.changedTouches=[t],i(t)}function W(t,i,e){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&j(t,i)};t["_leaflet_touchmove"+e]=n,t.addEventListener(ie,n,!1)}function H(t,i,e){var n=function(t){j(t,i)};t["_leaflet_touchend"+e]=n,t.addEventListener(ee,n,!1),t.addEventListener(ne,n,!1)}function F(t,i,e){function n(t){var i;if(Vi){if(!bi||"mouse"===t.pointerType)return;i=ae}else i=t.touches.length;if(!(i>1)){var e=Date.now(),n=e-(s||e);r=t.touches?t.touches[0]:t,a=n>0&&n<=h,s=e}}function o(t){if(a&&!r.cancelBubble){if(Vi){if(!bi||"mouse"===t.pointerType)return;var e,n,o={};for(n in r)e=r[n],o[n]=e&&e.bind?e.bind(r):e;r=o}r.type="dblclick",i(r),s=null}}var s,r,a=!1,h=250;return t[le+he+e]=n,t[le+ue+e]=o,t[le+"dblclick"+e]=i,t.addEventListener(he,n,!1),t.addEventListener(ue,o,!1),t.addEventListener("dblclick",i,!1),this}function U(t,i){var e=t[le+he+i],n=t[le+ue+i],o=t[le+"dblclick"+i];return t.removeEventListener(he,e,!1),t.removeEventListener(ue,n,!1),bi||t.removeEventListener("dblclick",o,!1),this}function V(t){return"string"==typeof t?document.getElementById(t):t}function q(t,i){var e=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!e||"auto"===e)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);e=n?n[i]:null}return"auto"===e?null:e}function G(t,i,e){var n=document.createElement(t);return n.className=i||"",e&&e.appendChild(n),n}function K(t){var i=t.parentNode;i&&i.removeChild(t)}function Y(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function X(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function J(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function $(t,i){if(void 0!==t.classList)return t.classList.contains(i);var e=et(t);return e.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(e)}function Q(t,i){if(void 0!==t.classList)for(var e=u(i),n=0,o=e.length;n100&&n<500||t.target._simulatedClick&&!t._simulated?Lt(t):(ge=e,i(t))}function Zt(t,i){if(!i||!t.length)return t.slice();var e=i*i;return t=At(t,e),t=kt(t,e)}function Et(t,i,e){return Math.sqrt(Dt(t,i,e,!0))}function kt(t,i){var e=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(e);n[0]=n[e-1]=1,Bt(t,n,i,0,e-1);var o,s=[];for(o=0;oh&&(s=r,h=a);h>e&&(i[s]=1,Bt(t,i,e,n,s),Bt(t,i,e,s,o))}function At(t,i){for(var e=[t[0]],n=1,o=0,s=t.length;ni&&(e.push(t[n]),o=n);return oi.max.x&&(e|=2),t.yi.max.y&&(e|=8),e}function Nt(t,i){var e=i.x-t.x,n=i.y-t.y;return e*e+n*n}function Dt(t,i,e,n){var o,s=i.x,r=i.y,a=e.x-s,h=e.y-r,u=a*a+h*h;return u>0&&((o=((t.x-s)*a+(t.y-r)*h)/u)>1?(s=e.x,r=e.y):o>0&&(s+=a*o,r+=h*o)),a=t.x-s,h=t.y-r,n?a*a+h*h:new x(s,r)}function jt(t){return!oi(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Wt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),jt(t)}function Ht(t,i,e){var n,o,s,r,a,h,u,l,c,_=[1,4,2,8];for(o=0,u=t.length;o0?Math.floor(t):Math.ceil(t)};x.prototype={clone:function(){return new x(this.x,this.y)},add:function(t){return this.clone()._add(w(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(w(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new x(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new x(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=_i(this.x),this.y=_i(this.y),this},distanceTo:function(t){var i=(t=w(t)).x-this.x,e=t.y-this.y;return Math.sqrt(i*i+e*e)},equals:function(t){return(t=w(t)).x===this.x&&t.y===this.y},contains:function(t){return t=w(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},P.prototype={extend:function(t){return t=w(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new x(this.min.x,this.max.y)},getTopRight:function(){return new x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,e;return(t="number"==typeof t[0]||t instanceof x?w(t):b(t))instanceof P?(i=t.min,e=t.max):i=e=t,i.x>=this.min.x&&e.x<=this.max.x&&i.y>=this.min.y&&e.y<=this.max.y},intersects:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>=i.x&&n.x<=e.x,r=o.y>=i.y&&n.y<=e.y;return s&&r},overlaps:function(t){t=b(t);var i=this.min,e=this.max,n=t.min,o=t.max,s=o.x>i.x&&n.xi.y&&n.y=n.lat&&e.lat<=o.lat&&i.lng>=n.lng&&e.lng<=o.lng},intersects:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=i.lat&&n.lat<=e.lat,r=o.lng>=i.lng&&n.lng<=e.lng;return s&&r},overlaps:function(t){t=z(t);var i=this._southWest,e=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>i.lat&&n.lati.lng&&n.lng1,Xi=!!document.createElement("canvas").getContext,Ji=!(!document.createElementNS||!E("svg").createSVGRect),$i=!Ji&&function(){try{var t=document.createElement("div");t.innerHTML='';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}(),Qi=(Object.freeze||Object)({ie:Pi,ielt9:Li,edge:bi,webkit:Ti,android:zi,android23:Mi,androidStock:Si,opera:Zi,chrome:Ei,gecko:ki,safari:Bi,phantom:Ai,opera12:Ii,win:Oi,ie3d:Ri,webkit3d:Ni,gecko3d:Di,any3d:ji,mobile:Wi,mobileWebkit:Hi,mobileWebkit3d:Fi,msPointer:Ui,pointer:Vi,touch:qi,mobileOpera:Gi,mobileGecko:Ki,retina:Yi,canvas:Xi,svg:Ji,vml:$i}),te=Ui?"MSPointerDown":"pointerdown",ie=Ui?"MSPointerMove":"pointermove",ee=Ui?"MSPointerUp":"pointerup",ne=Ui?"MSPointerCancel":"pointercancel",oe=["INPUT","SELECT","OPTION"],se={},re=!1,ae=0,he=Ui?"MSPointerDown":Vi?"pointerdown":"touchstart",ue=Ui?"MSPointerUp":Vi?"pointerup":"touchend",le="_leaflet_",ce=st(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),_e=st(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),de="webkitTransition"===_e||"OTransition"===_e?_e+"End":"transitionend";if("onselectstart"in document)fi=function(){mt(window,"selectstart",Pt)},gi=function(){ft(window,"selectstart",Pt)};else{var pe=st(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);fi=function(){if(pe){var t=document.documentElement.style;vi=t[pe],t[pe]="none"}},gi=function(){pe&&(document.documentElement.style[pe]=vi,vi=void 0)}}var me,fe,ge,ve=(Object.freeze||Object)({TRANSFORM:ce,TRANSITION:_e,TRANSITION_END:de,get:V,getStyle:q,create:G,remove:K,empty:Y,toFront:X,toBack:J,hasClass:$,addClass:Q,removeClass:tt,setClass:it,getClass:et,setOpacity:nt,testProp:st,setTransform:rt,setPosition:at,getPosition:ht,disableTextSelection:fi,enableTextSelection:gi,disableImageDrag:ut,enableImageDrag:lt,preventOutline:ct,restoreOutline:_t,getSizedParentNode:dt,getScale:pt}),ye="_leaflet_events",xe=Oi&&Ei?2*window.devicePixelRatio:ki?window.devicePixelRatio:1,we={},Pe=(Object.freeze||Object)({on:mt,off:ft,stopPropagation:yt,disableScrollPropagation:xt,disableClickPropagation:wt,preventDefault:Pt,stop:Lt,getMousePosition:bt,getWheelDelta:Tt,fakeStop:zt,skipped:Mt,isExternalTarget:Ct,addListener:mt,removeListener:ft}),Le=ci.extend({run:function(t,i,e,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=e||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=ht(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=f(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,e=1e3*this._duration;ithis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var e=this.getCenter(),n=this._limitCenter(e,this._zoom,z(t));return e.equals(n)||this.panTo(n,i),this._enforcingBounds=!1,this},panInside:function(t,i){var e=w((i=i||{}).paddingTopLeft||i.padding||[0,0]),n=w(i.paddingBottomRight||i.padding||[0,0]),o=this.getCenter(),s=this.project(o),r=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),u=b([a.min.add(e),a.max.subtract(n)]);if(!u.contains(r)){this._enforcingBounds=!0;var l=s.subtract(r),c=w(r.x+l.x,r.y+l.y);(r.xu.max.x)&&(c.x=s.x-l.x,l.x>0?c.x+=h.x-e.x:c.x-=h.x-n.x),(r.yu.max.y)&&(c.y=s.y-l.y,l.y>0?c.y+=h.y-e.y:c.y-=h.y-n.y),this.panTo(this.unproject(c),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(e(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=e(this._handleGeolocationResponse,this),o=e(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var i=t.code,e=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+e+"."})},_handleGeolocationResponse:function(t){var i=new M(t.coords.latitude,t.coords.longitude),e=i.toBounds(2*t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(e);this.setView(i,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:i,bounds:e,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,i){if(!i)return this;var e=this[t]=new i(this);return this._handlers.push(e),this.options[t]&&e.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),K(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(g(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)K(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var e=G("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new T(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,e){t=z(t),e=w(e||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(e),u=b(this.project(a,n),this.project(r,n)).getSize(),l=ji?this.options.zoomSnap:1,c=h.x/u.x,_=h.y/u.y,d=i?Math.max(c,_):Math.min(c,_);return n=this.getScaleZoom(d,n),l&&(n=Math.round(n/(l/100))*(l/100),n=i?Math.ceil(n/l)*l:Math.floor(n/l)*l),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new x(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var e=this._getTopLeftPoint(t,i);return new P(e,e.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var e=this.options.crs;return i=void 0===i?this._zoom:i,e.scale(t)/e.scale(i)},getScaleZoom:function(t,i){var e=this.options.crs;i=void 0===i?this._zoom:i;var n=e.zoom(t*e.scale(i));return isNaN(n)?1/0:n},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(C(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(w(t),i)},layerPointToLatLng:function(t){var i=w(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(C(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(C(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(z(t))},distance:function(t,i){return this.options.crs.distance(C(t),C(i))},containerPointToLayerPoint:function(t){return w(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return w(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(w(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(C(t)))},mouseEventToContainerPoint:function(t){return bt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=V(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");mt(i,"scroll",this._onScroll,this),this._containerId=n(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ji,Q(t,"leaflet-container"+(qi?" leaflet-touch":"")+(Yi?" leaflet-retina":"")+(Li?" leaflet-oldie":"")+(Bi?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=q(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),at(this._mapPane,new x(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Q(t.markerPane,"leaflet-zoom-hide"),Q(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i){at(this._mapPane,new x(0,0));var e=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var n=this._zoom!==i;this._moveStart(n,!1)._move(t,i)._moveEnd(n),this.fire("viewreset"),e&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,e){void 0===i&&(i=this._zoom);var n=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||e&&e.pinch)&&this.fire("zoom",e),this.fire("move",e)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return g(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){at(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var i=t?ft:mt;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),ji&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){g(this._resizeRequest),this._resizeRequest=f(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var e,o=[],s="mouseout"===i||"mouseover"===i,r=t.target||t.srcElement,a=!1;r;){if((e=this._targets[n(r)])&&("click"===i||"preclick"===i)&&!t._simulated&&this._draggableMoved(e)){a=!0;break}if(e&&e.listens(i,!0)){if(s&&!Ct(r,t))break;if(o.push(e),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!Ct(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!Mt(t)){var i=t.type;"mousedown"!==i&&"keypress"!==i||ct(t.target||t.srcElement),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if("click"===t.type){var o=i({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,e))).length){var s=n[0];"contextmenu"===e&&s.listens(e,!0)&&Pt(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var h=0;h0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),e=this.getMaxZoom(),n=ji?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(i,Math.min(e,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){tt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var e=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(e))&&(this.panBy(e,i),!0)},_createAnimProxy:function(){var t=this._proxy=G("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var i=ce,e=this._proxy.style[i];rt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),i=this.getZoom();rt(this._proxy,this.project(t,i),this.getZoomScale(i,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){K(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,e){if(this._animatingZoom)return!0;if(e=e||{},!this._zoomAnimated||!1===e.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(i),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==e.animate&&!this.getSize().contains(o))&&(f(function(){this._moveStart(!0,!1)._animateZoom(t,i,!0)},this),!0)},_animateZoom:function(t,i,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,Q(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:o}),setTimeout(e(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&tt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),f(function(){this._moveEnd(!0)},this))}}),Te=v.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),e=this.getPosition(),n=t._controlCorners[e];return Q(i,"leaflet-control"),-1!==e.indexOf("bottom")?n.insertBefore(i,n.firstChild):n.appendChild(i),this},remove:function(){return this._map?(K(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ze=function(t){return new Te(t)};be.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=e+t+" "+e+o;i[t+o]=G("div",s,n)}var i=this._controlCorners={},e="leaflet-",n=this._controlContainer=G("div",e+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)K(this._controlCorners[t]);K(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Me=Te.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,e,n){return e1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(n(t.target)),e=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;e&&this._map.fire(e,i)},_createRadioElement:function(t,i){var e='",n=document.createElement("div");return n.innerHTML=e,n.firstChild},_addItem:function(t){var i,e=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=o):i=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(i),i.layerId=n(t.layer),mt(i,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("div");return e.appendChild(r),r.appendChild(i),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t,i,e=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=e.length-1;s>=0;s--)t=e[s],i=this._getLayer(t.layerId).layer,t.checked?n.push(i):t.checked||o.push(i);for(s=0;s=0;o--)t=e[o],i=this._getLayer(t.layerId).layer,t.disabled=void 0!==i.options.minZoom&&ni.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Ce=Te.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",e=G("div",i+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,i+"-in",e,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,i+"-out",e,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),e},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,e,n,o){var s=G("a",e,n);return s.innerHTML=t,s.href="#",s.title=i,s.setAttribute("role","button"),s.setAttribute("aria-label",i),wt(s),mt(s,"click",Lt),mt(s,"click",o,this),mt(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";tt(this._zoomInButton,i),tt(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMinZoom())&&Q(this._zoomOutButton,i),(this._disabled||t._zoom===t.getMaxZoom())&&Q(this._zoomInButton,i)}});be.mergeOptions({zoomControl:!0}),be.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ce,this.addControl(this.zoomControl))});var Se=Te.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i=G("div","leaflet-control-scale"),e=this.options;return this._addScales(e,"leaflet-control-scale-line",i),t.on(e.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,e){t.metric&&(this._mScale=G("div",i,e)),t.imperial&&(this._iScale=G("div",i,e))},_update:function(){var t=this._map,i=t.getSize().y/2,e=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(e)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t),e=i<1e3?i+" m":i/1e3+" km";this._updateScale(this._mScale,e,i/t)},_updateImperial:function(t){var i,e,n,o=3.2808399*t;o>5280?(i=o/5280,e=this._getRoundNum(i),this._updateScale(this._iScale,e+" mi",e/i)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,i,e){t.style.width=Math.round(this.options.maxWidth*e)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),e=t/i;return e=e>=10?10:e>=5?5:e>=3?3:e>=2?2:1,i*e}}),Ze=Te.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=G("div","leaflet-control-attribution"),wt(this._container);for(var i in t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(" | ")}}});be.mergeOptions({attributionControl:!0}),be.addInitHook(function(){this.options.attributionControl&&(new Ze).addTo(this)});Te.Layers=Me,Te.Zoom=Ce,Te.Scale=Se,Te.Attribution=Ze,ze.layers=function(t,i,e){return new Me(t,i,e)},ze.zoom=function(t){return new Ce(t)},ze.scale=function(t){return new Se(t)},ze.attribution=function(t){return new Ze(t)};var Ee=v.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ee.addTo=function(t,i){return t.addHandler(i,this),this};var ke,Be={Events:li},Ae=qi?"touchstart mousedown":"mousedown",Ie={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Oe={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Re=ci.extend({options:{clickTolerance:3},initialize:function(t,i,e,n){l(this,n),this._element=t,this._dragStartTarget=i||t,this._preventOutline=e},enable:function(){this._enabled||(mt(this._dragStartTarget,Ae,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Re._dragging===this&&this.finishDrag(),ft(this._dragStartTarget,Ae,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!$(this._element,"leaflet-zoom-anim")&&!(Re._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Re._dragging=this,this._preventOutline&&ct(this._element),ut(),fi(),this._moving)))){this.fire("down");var i=t.touches?t.touches[0]:t,e=dt(this._element);this._startPoint=new x(i.clientX,i.clientY),this._parentScale=pt(e),mt(document,Oe[t.type],this._onMove,this),mt(document,Ie[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,e=new x(i.clientX,i.clientY)._subtract(this._startPoint);(e.x||e.y)&&(Math.abs(e.x)+Math.abs(e.y)1e-7;h++)i=s*Math.sin(a),i=Math.pow((1-i)/(1+i),s/2),a+=u=Math.PI/2-2*Math.atan(r*i)-a;return new M(a*e,t.x*e/n)}},He=(Object.freeze||Object)({LonLat:je,Mercator:We,SphericalMercator:mi}),Fe=i({},pi,{code:"EPSG:3395",projection:We,transformation:function(){var t=.5/(Math.PI*We.R);return Z(t,.5,-t,.5)}()}),Ue=i({},pi,{code:"EPSG:4326",projection:je,transformation:Z(1/180,1,-1/180,.5)}),Ve=i({},di,{projection:je,transformation:Z(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var e=i.lng-t.lng,n=i.lat-t.lat;return Math.sqrt(e*e+n*n)},infinite:!0});di.Earth=pi,di.EPSG3395=Fe,di.EPSG3857=yi,di.EPSG900913=xi,di.EPSG4326=Ue,di.Simple=Ve;var qe=ci.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var e=this.getEvents();i.on(e,this),this.once("remove",function(){i.off(e,this)},this)}this.onAdd(i),this.getAttribution&&i.attributionControl&&i.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),i.fire("layeradd",{layer:this})}}});be.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=n(t);return this._layers[i]?this:(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var i=n(t);return this._layers[i]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,i){for(var e in this._layers)t.call(i,this._layers[e]);return this},_addLayers:function(t){for(var i=0,e=(t=t?oi(t)?t:[t]:[]).length;ithis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()i)return r=(n-i)/e,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=C(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new T,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],e=jt(t),n=0,o=t.length;n=2&&i[0]instanceof M&&i[0].equals(i[e-1])&&i.pop(),i},_setLatLngs:function(t){nn.prototype._setLatLngs.call(this,t),jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return jt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,e=new x(i,i);if(t=new P(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;ot.y!=n.y>t.y&&t.x<(n.x-e.x)*(t.y-e.y)/(n.y-e.y)+e.x&&(u=!u);return u||nn.prototype._containsPoint.call(this,t,!0)}}),sn=Ke.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,e,n,o=oi(t)?t:t.features;if(o){for(i=0,e=o.length;i0?o:[i.src]}else{oi(this._url)||(this._url=[this._url]),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop;for(var a=0;ao?(i.height=o+"px",Q(t,"leaflet-popup-scrolled")):tt(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();at(this._container,i.add(e))},_adjustPan:function(){if(this.options.autoPan){this._map._panAnim&&this._map._panAnim.stop();var t=this._map,i=parseInt(q(this._container,"marginBottom"),10)||0,e=this._container.offsetHeight+i,n=this._containerWidth,o=new x(this._containerLeft,-e-this._containerBottom);o._add(ht(this._container));var s=t.layerPointToContainerPoint(o),r=w(this.options.autoPanPadding),a=w(this.options.autoPanPaddingTopLeft||r),h=w(this.options.autoPanPaddingBottomRight||r),u=t.getSize(),l=0,c=0;s.x+n+h.x>u.x&&(l=s.x+n-u.x+h.x),s.x-l-a.x<0&&(l=s.x-a.x),s.y+e+h.y>u.y&&(c=s.y+e-u.y+h.y),s.y-c-a.y<0&&(c=s.y-a.y),(l||c)&&t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close(),Lt(t)},_getAnchor:function(){return w(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});be.mergeOptions({closePopupOnClick:!0}),be.include({openPopup:function(t,i,e){return t instanceof cn||(t=new cn(e).setContent(t)),i&&t.setLatLng(i),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),qe.include({bindPopup:function(t,i){return t instanceof cn?(l(t,i),this._popup=t,t._source=this):(this._popup&&!i||(this._popup=new cn(i,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,i){if(t instanceof qe||(i=t,t=this),t instanceof Ke)for(var e in this._layers){t=this._layers[e];break}return i||(i=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,i)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var i=t.layer||t.target;this._popup&&this._map&&(Lt(t),i instanceof Qe?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===i?this.closePopup():this.openPopup(i,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var _n=ln.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ln.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ln.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ln.prototype.getEvents.call(this);return qi&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=G("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i=this._map,e=this._container,n=i.latLngToContainerPoint(i.getCenter()),o=i.layerPointToContainerPoint(t),s=this.options.direction,r=e.offsetWidth,a=e.offsetHeight,h=w(this.options.offset),u=this._getAnchor();"top"===s?t=t.add(w(-r/2+h.x,-a+h.y+u.y,!0)):"bottom"===s?t=t.subtract(w(r/2-h.x,-h.y,!0)):"center"===s?t=t.subtract(w(r/2+h.x,a/2-u.y+h.y,!0)):"right"===s||"auto"===s&&o.xthis.options.maxZoom||en&&this._retainParent(o,s,r,n))},_retainChildren:function(t,i,e,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*i;s<2*i+2;s++){var r=new x(o,s);r.z=e+1;var a=this._tileCoordsToKey(r),h=this._tiles[a];h&&h.active?h.retain=!0:(h&&h.loaded&&(h.retain=!0),e+1this.options.maxZoom||void 0!==this.options.minZoom&&o1)this._setView(t,e);else{for(var c=o.min.y;c<=o.max.y;c++)for(var _=o.min.x;_<=o.max.x;_++){var d=new x(_,c);if(d.z=this._tileZoom,this._isValidTile(d)){var p=this._tiles[this._tileCoordsToKey(d)];p?p.current=!0:r.push(d)}}if(r.sort(function(t,i){return t.distanceTo(s)-i.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(_=0;_e.max.x)||!i.wrapLat&&(t.ye.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return z(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,e=this.getTileSize(),n=t.scaleBy(e),o=n.add(e);return[i.unproject(n,t.z),i.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),e=new T(i[0],i[1]);return this.options.noWrap||(e=this._map.wrapLatLngBounds(e)),e},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),e=new x(+i[0],+i[1]);return e.z=+i[2],e},_removeTile:function(t){var i=this._tiles[t];i&&(K(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){Q(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=r,t.onmousemove=r,Li&&this.options.opacity<1&&nt(t,this.options.opacity),zi&&!Mi&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,i){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),e(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&f(e(this._tileReady,this,t,null,s)),at(s,n),this._tiles[o]={el:s,coords:t,current:!0},i.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,i,n){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(nt(n.el,0),g(this._fadeFrame),this._fadeFrame=f(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(Q(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Li||!this._map._fadeAnimated?f(this._pruneTiles,this):setTimeout(e(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new x(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new P(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),mn=pn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&Yi&&i.maxZoom>0&&(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom++):(i.zoomOffset++,i.maxZoom--),i.minZoom=Math.max(0,i.minZoom)),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),zi||this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return mt(n,"load",e(this._tileOnLoad,this,i,n)),mt(n,"error",e(this._tileOnError,this,i,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Yi?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=n),e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,i){Li?setTimeout(e(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,e){var n=this.options.errorTileUrl;n&&i.getAttribute("src")!==n&&(i.src=n),t(e,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,i=this.options.maxZoom,e=this.options.zoomReverse,n=this.options.zoomOffset;return e&&(t=i-t),t+n},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=r,i.onerror=r,i.complete||(i.src=si,K(i),delete this._tiles[t]))},_removeTile:function(t){var i=this._tiles[t];if(i)return Si||i.el.setAttribute("src",si),pn.prototype._removeTile.call(this,t)},_tileReady:function(t,i,e){if(this._map&&(!e||e.getAttribute("src")!==si))return pn.prototype._tileReady.call(this,t,i,e)}}),fn=mn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e)o in this.options||(n[o]=e[o]);var s=(e=l(this,e)).detectRetina&&Yi?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var i=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[i]=this._crs.code,mn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),e=this._crs,n=b(e.project(i[0]),e.project(i[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Ue?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=mn.prototype.getTileUrl.call(this,t);return a+c(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,e){return i(this.wmsParams,t),e||this.redraw(),this}});mn.WMS=fn,Jt.wms=function(t,i){return new fn(t,i)};var gn=qe.extend({options:{padding:.1,tolerance:0},initialize:function(t){l(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&Q(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var e=this._map.getZoomScale(i,this._zoom),n=ht(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,i),r=this._map.project(t,i).subtract(s),a=o.multiplyBy(-e).add(n).add(o).subtract(r);ji?rt(this._container,a,e):at(this._container,a)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),e=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new P(e,e.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),vn=gn.extend({getEvents:function(){var t=gn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){gn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");mt(t,"mousemove",o(this._onMouseMove,32,this),this),mt(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),mt(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){g(this._redrawRequest),delete this._ctx,K(this._container),ft(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){this._redrawBounds=null;for(var t in this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){gn.prototype._update.call(this);var t=this._bounds,i=this._container,e=t.getSize(),n=Yi?2:1;at(i,t.min),i.width=n*e.x,i.height=n*e.y,i.style.width=e.x+"px",i.style.height=e.y+"px",Yi&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){gn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,e=i.next,o=i.prev;e?e.prev=o:this._drawLast=o,o?o.next=e:this._drawFirst=e,delete t._order,delete this._layers[n(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var i,e,n=t.options.dashArray.split(/[, ]+/),o=[];for(e=0;e')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),xn={_initContainer:function(){this._container=G("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(gn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=yn("shape");Q(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=yn("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;K(i),t.removeInteractiveTarget(i),delete this._layers[n(t)]},_updateStyle:function(t){var i=t._stroke,e=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(i||(i=t._stroke=yn("stroke")),o.appendChild(i),i.weight=n.weight+"px",i.color=n.color,i.opacity=n.opacity,n.dashArray?i.dashStyle=oi(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):i.dashStyle="",i.endcap=n.lineCap.replace("butt","flat"),i.joinstyle=n.lineJoin):i&&(o.removeChild(i),t._stroke=null),n.fill?(e||(e=t._fill=yn("fill")),o.appendChild(e),e.color=n.fillColor||n.color,e.opacity=n.fillOpacity):e&&(o.removeChild(e),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),e=Math.round(t._radius),n=Math.round(t._radiusY||e);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+e+","+n+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){X(t._container)},_bringToBack:function(t){J(t._container)}},wn=$i?yn:E,Pn=gn.extend({getEvents:function(){var t=gn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=wn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=wn("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){K(this._container),ft(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){gn.prototype._update.call(this);var t=this._bounds,i=t.getSize(),e=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,e.setAttribute("width",i.x),e.setAttribute("height",i.y)),at(e,t.min),e.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=wn("path");t.options.className&&Q(i,t.options.className),t.options.interactive&&Q(i,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){K(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,e=t.options;i&&(e.stroke?(i.setAttribute("stroke",e.color),i.setAttribute("stroke-opacity",e.opacity),i.setAttribute("stroke-width",e.weight),i.setAttribute("stroke-linecap",e.lineCap),i.setAttribute("stroke-linejoin",e.lineJoin),e.dashArray?i.setAttribute("stroke-dasharray",e.dashArray):i.removeAttribute("stroke-dasharray"),e.dashOffset?i.setAttribute("stroke-dashoffset",e.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),e.fill?(i.setAttribute("fill",e.fillColor||e.color),i.setAttribute("fill-opacity",e.fillOpacity),i.setAttribute("fill-rule",e.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,k(t._parts,i))},_updateCircle:function(t){var i=t._point,e=Math.max(Math.round(t._radius),1),n="a"+e+","+(Math.max(Math.round(t._radiusY),1)||e)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(i.x-e)+","+i.y+n+2*e+",0 "+n+2*-e+",0 ";this._setPath(t,o)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){X(t._path)},_bringToBack:function(t){J(t._path)}});$i&&Pn.include(xn),be.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&$t(t)||Qt(t)}});var Ln=on.extend({initialize:function(t,i){on.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=z(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});Pn.create=wn,Pn.pointsToPath=k,sn.geometryToLayer=Ft,sn.coordsToLatLng=Ut,sn.coordsToLatLngs=Vt,sn.latLngToCoords=qt,sn.latLngsToCoords=Gt,sn.getFeature=Kt,sn.asFeature=Yt,be.mergeOptions({boxZoom:!0});var bn=Ee.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){mt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){K(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),fi(),ut(),this._startPoint=this._map.mouseEventToContainerPoint(t),mt(document,{contextmenu:Lt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=G("div","leaflet-zoom-box",this._container),Q(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new P(this._point,this._startPoint),e=i.getSize();at(this._box,i.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(K(this._box),tt(this._container,"leaflet-crosshair")),gi(),lt(),ft(document,{contextmenu:Lt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(e(this._resetState,this),0);var i=new T(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});be.addInitHook("addHandler","boxZoom",bn),be.mergeOptions({doubleClickZoom:!0});var Tn=Ee.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,e=i.getZoom(),n=i.options.zoomDelta,o=t.originalEvent.shiftKey?e-n:e+n;"center"===i.options.doubleClickZoom?i.setZoom(o):i.setZoomAround(t.containerPoint,o)}});be.addInitHook("addHandler","doubleClickZoom",Tn),be.mergeOptions({dragging:!0,inertia:!Mi,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var zn=Ee.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Re(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}Q(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){tt(this._map._container,"leaflet-grab"),tt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=z(this._map.options.maxBounds);this._offsetLimit=b(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,e=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(e),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.xi.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),e=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-i+e)%t+i-e,s=(n+i+e)%t-i-e,r=Math.abs(o+e)0?s:-s))-i;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(i+r):t.setZoomAround(this._lastMousePos,i+r))}});be.addInitHook("addHandler","scrollWheelZoom",Cn),be.mergeOptions({tap:!0,tapTolerance:15});var Sn=Ee.extend({addHooks:function(){mt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Pt(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var i=t.touches[0],n=i.target;this._startPos=this._newPos=new x(i.clientX,i.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&Q(n,"leaflet-active"),this._holdTimeout=setTimeout(e(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",i))},this),1e3),this._simulateEvent("mousedown",i),mt(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),ft(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var i=t.changedTouches[0],e=i.target;e&&e.tagName&&"a"===e.tagName.toLowerCase()&&tt(e,"leaflet-active"),this._simulateEvent("mouseup",i),this._isTapValid()&&this._simulateEvent("click",i)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var i=t.touches[0];this._newPos=new x(i.clientX,i.clientY),this._simulateEvent("mousemove",i)},_simulateEvent:function(t,i){var e=document.createEvent("MouseEvents");e._simulated=!0,i.target._simulatedClick=!0,e.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),i.target.dispatchEvent(e)}});qi&&!Vi&&be.addInitHook("addHandler","tap",Sn),be.mergeOptions({touchZoom:qi&&!Mi,bounceAtZoomLimits:!0});var Zn=Ee.extend({addHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),mt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){tt(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var e=i.mouseEventToContainerPoint(t.touches[0]),n=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),mt(document,"touchmove",this._onTouchMove,this),mt(document,"touchend",this._onTouchEnd,this),Pt(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),o=i.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(s,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoomi.getMaxZoom()&&s>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),g(this._animRequest);var a=e(i._move,i,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=f(a,this,!0),Pt(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,g(this._animRequest),ft(document,"touchmove",this._onTouchMove),ft(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});be.addInitHook("addHandler","touchZoom",Zn),be.BoxZoom=bn,be.DoubleClickZoom=Tn,be.Drag=zn,be.Keyboard=Mn,be.ScrollWheelZoom=Cn,be.Tap=Sn,be.TouchZoom=Zn,Object.freeze=ti,t.version="1.4.0+HEAD.3337f36",t.Control=Te,t.control=ze,t.Browser=Qi,t.Evented=ci,t.Mixin=Be,t.Util=ui,t.Class=v,t.Handler=Ee,t.extend=i,t.bind=e,t.stamp=n,t.setOptions=l,t.DomEvent=Pe,t.DomUtil=ve,t.PosAnimation=Le,t.Draggable=Re,t.LineUtil=Ne,t.PolyUtil=De,t.Point=x,t.point=w,t.Bounds=P,t.bounds=b,t.Transformation=S,t.transformation=Z,t.Projection=He,t.LatLng=M,t.latLng=C,t.LatLngBounds=T,t.latLngBounds=z,t.CRS=di,t.GeoJSON=sn,t.geoJSON=Xt,t.geoJson=an,t.Layer=qe,t.LayerGroup=Ge,t.layerGroup=function(t,i){return new Ge(t,i)},t.FeatureGroup=Ke,t.featureGroup=function(t){return new Ke(t)},t.ImageOverlay=hn,t.imageOverlay=function(t,i,e){return new hn(t,i,e)},t.VideoOverlay=un,t.videoOverlay=function(t,i,e){return new un(t,i,e)},t.DivOverlay=ln,t.Popup=cn,t.popup=function(t,i){return new cn(t,i)},t.Tooltip=_n,t.tooltip=function(t,i){return new _n(t,i)},t.Icon=Ye,t.icon=function(t){return new Ye(t)},t.DivIcon=dn,t.divIcon=function(t){return new dn(t)},t.Marker=$e,t.marker=function(t,i){return new $e(t,i)},t.TileLayer=mn,t.tileLayer=Jt,t.GridLayer=pn,t.gridLayer=function(t){return new pn(t)},t.SVG=Pn,t.svg=Qt,t.Renderer=gn,t.Canvas=vn,t.canvas=$t,t.Path=Qe,t.CircleMarker=tn,t.circleMarker=function(t,i){return new tn(t,i)},t.Circle=en,t.circle=function(t,i,e){return new en(t,i,e)},t.Polyline=nn,t.polyline=function(t,i){return new nn(t,i)},t.Polygon=on,t.polygon=function(t,i){return new on(t,i)},t.Rectangle=Ln,t.rectangle=function(t,i){return new Ln(t,i)},t.Map=be,t.map=function(t,i){return new be(t,i)};var En=window.L;t.noConflict=function(){return window.L=En,this},window.L=t}); \ No newline at end of file diff --git a/resources/mapview/mapview.html b/resources/mapview/mapview.html deleted file mode 100644 index 66665fd36a..0000000000 --- a/resources/mapview/mapview.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - -
- - - - \ No newline at end of file diff --git a/src/status_im/ui/components/icons/vector_icons.cljs b/src/status_im/ui/components/icons/vector_icons.cljs index c572dd0281..776f7ca882 100644 --- a/src/status_im/ui/components/icons/vector_icons.cljs +++ b/src/status_im/ui/components/icons/vector_icons.cljs @@ -1,130 +1,8 @@ (ns status-im.ui.components.icons.vector-icons - (:require [goog.object :as object] - [reagent.core :as reagent] - [status-im.ui.components.react :as react] - [status-im.utils.platform :as platform] - [status-im.react-native.js-dependencies :as js-dependencies] + (:require [status-im.ui.components.react :as react] [status-im.ui.components.colors :as colors]) (:refer-clojure :exclude [use])) -(when-not platform/desktop? - (defn get-property [name] - (object/get js-dependencies/svg name)) - - (defn adapt-class [class] - (when class - (reagent/adapt-react-class class))) - - (defn get-class [name] - (adapt-class (get-property name))) - - (def svg (get-class "Svg")) - (def g (get-class "G")) - (def rect (get-class "Rect")) - (def path (get-class "Path")) - (def use (get-class "Use")) - (def defs (get-class "Defs")) - (def circle (get-class "Circle"))) - -(def icons - (when platform/desktop? - {;; Main icons - :main-icons/add (js/require "./resources/icons/main/add.svg") - :main-icons/add-contact (js/require "./resources/icons/main/add_contact.svg") - :main-icons/address (js/require "./resources/icons/main/address.svg") - :main-icons/advanced-settings (js/require "./resources/icons/main/advanced_settings.svg") - :main-icons/arrow-left (js/require "./resources/icons/main/arrow_left.svg") - :main-icons/arrow-right (js/require "./resources/icons/main/arrow_right.svg") - :main-icons/arrow-up (js/require "./resources/icons/main/arrow_up.svg") - :main-icons/back (js/require "./resources/icons/main/back.svg") - :main-icons/backspace (js/require "./resources/icons/main/backspace.svg") - :main-icons/browser (js/require "./resources/icons/main/browser.svg") - :main-icons/browser-home (js/require "./resources/icons/main/browser_home.svg") - :main-icons/camera (js/require "./resources/icons/main/camera.svg") - :main-icons/cancel (js/require "./resources/icons/main/cancel.svg") - :main-icons/change (js/require "./resources/icons/main/change.svg") - :main-icons/check (js/require "./resources/icons/main/check.svg") - :main-icons/close (js/require "./resources/icons/main/close.svg") - :main-icons/commands (js/require "./resources/icons/main/commands.svg") - :main-icons/copy (js/require "./resources/icons/main/copy.svg") - :main-icons/dapp (js/require "./resources/icons/main/dapp.svg") - :main-icons/delete (js/require "./resources/icons/main/delete.svg") - :main-icons/desktop (js/require "./resources/icons/main/desktop.svg") - :main-icons/dropdown (js/require "./resources/icons/main/dropdown.svg") - :main-icons/dropdown-up (js/require "./resources/icons/main/dropdown_up.svg") - :main-icons/edit (js/require "./resources/icons/main/edit.svg") - :main-icons/filter (js/require "./resources/icons/main/filter.svg") - :main-icons/flash-active (js/require "./resources/icons/main/flash_active.svg") - :main-icons/flash-inactive (js/require "./resources/icons/main/flash_inactive.svg") - :main-icons/fleet (js/require "./resources/icons/main/mailserver.svg") - :main-icons/group-chat (js/require "./resources/icons/main/group_chat.svg") - :main-icons/help (js/require "./resources/icons/main/help.svg") - :main-icons/history (js/require "./resources/icons/main/history.svg") - :main-icons/home (js/require "./resources/icons/main/home.svg") - :main-icons/in-contacts (js/require "./resources/icons/main/in_contacts.svg") - :main-icons/info (js/require "./resources/icons/main/info.svg") - :main-icons/keycard (js/require "./resources/icons/main/keycard.svg") - :main-icons/language (js/require "./resources/icons/main/language.svg") - :main-icons/link (js/require "./resources/icons/main/link.svg") - :main-icons/log-level (js/require "./resources/icons/main/mailserver.svg") - :main-icons/logout (js/require "./resources/icons/main/logout.svg") - :main-icons/mailserver (js/require "./resources/icons/main/mailserver.svg") - :main-icons/make_admin (js/require "./resources/icons/main/make_admin.svg") - :main-icons/max (js/require "./resources/icons/main/max.svg") - :main-icons/message (js/require "./resources/icons/main/message.svg") - :main-icons/mobile (js/require "./resources/icons/main/mobile.svg") - :main-icons/more (js/require "./resources/icons/main/more.svg") - :main-icons/network (js/require "./resources/icons/main/network.svg") - :main-icons/next (js/require "./resources/icons/main/next.svg") - :main-icons/notification (js/require "./resources/icons/main/notification.svg") - :main-icons/paste (js/require "./resources/icons/main/paste.svg") - :main-icons/password (js/require "./resources/icons/main/password.svg") - :main-icons/photo (js/require "./resources/icons/main/photo.svg") - :main-icons/one-on-one-chat (js/require "./resources/icons/main/private_chat.svg") - :main-icons/profile (js/require "./resources/icons/main/profile.svg") - :main-icons/public-chat (js/require "./resources/icons/main/public_chat.svg") - :main-icons/qr (js/require "./resources/icons/main/qr.svg") - :main-icons/receive (js/require "./resources/icons/main/receive.svg") - :main-icons/refresh (js/require "./resources/icons/main/refresh.svg") - :main-icons/remove-contact (js/require "./resources/icons/main/remove_contact.svg") - :main-icons/reply (js/require "./resources/icons/main/reply.svg") - :main-icons/search (js/require "./resources/icons/main/search.svg") - :main-icons/security (js/require "./resources/icons/main/security.svg") - :main-icons/send (js/require "./resources/icons/main/send.svg") - :main-icons/settings (js/require "./resources/icons/main/settings.svg") - :main-icons/share (js/require "./resources/icons/main/share.svg") - :main-icons/stickers (js/require "./resources/icons/main/stickers.svg") - :main-icons/text (js/require "./resources/icons/main/text.svg") - :main-icons/tribute-to-talk (js/require "./resources/icons/main/tribute_to_talk.svg") - :main-icons/two-arrows (js/require "./resources/icons/main/two_arrows.svg") - :main-icons/user-profile (js/require "./resources/icons/main/user_profile.svg") - :main-icons/username (js/require "./resources/icons/main/username.svg") - :main-icons/wallet (js/require "./resources/icons/main/wallet.svg") - :main-icons/warning (js/require "./resources/icons/main/warning.svg") - :main-icons/wnode (js/require "./resources/icons/main/mailserver.svg") - ;; Tiny icons - :tiny-icons/tiny-arrow-down (js/require "./resources/icons/tiny/tiny_arrow_down.svg") - :tiny-icons/tiny-check (js/require "./resources/icons/tiny/tiny_check.svg") - :tiny-icons/tiny-external (js/require "./resources/icons/tiny/tiny_external.svg") - :tiny-icons/tiny-group (js/require "./resources/icons/tiny/tiny_group.svg") - :tiny-icons/tiny-lock (js/require "./resources/icons/tiny/tiny_lock.svg") - :tiny-icons/tiny-lock-broken (js/require "./resources/icons/tiny/tiny_lock_broken.svg") - :tiny-icons/tiny-new-contact (js/require "./resources/icons/tiny/tiny_new_contact.svg") - :tiny-icons/tiny-pending (js/require "./resources/icons/tiny/tiny_pending.svg") - :tiny-icons/tiny-public (js/require "./resources/icons/tiny/tiny_public.svg") - :tiny-icons/tiny-reply (js/require "./resources/icons/tiny/tiny_reply.svg") - :tiny-icons/tiny-settings (js/require "./resources/icons/tiny/tiny_settings.svg") - :tiny-icons/tribute-to-talk (js/require "./resources/icons/tiny/tribute_to_talk.svg") - ;; Stickers icons - :sticker-icons/stickers-big (js/require "./resources/icons/stickers/stickers_big.svg") - :sticker-icons/recent (js/require "./resources/icons/stickers/recent.svg") - ;; Old icons - :icons/tooltip-triangle (js/require "./resources/icons/tooltip-triangle.svg") - :icons/logo (js/require "./resources/icons/logo.svg") - :icons/indicator-big (js/require "./resources/icons/indicator-big.svg") - :icons/indicator-middle (js/require "./resources/icons/indicator-middle.svg") - :icons/indicator-small (js/require "./resources/icons/indicator-small.svg")})) - (defn- match-color [color] (cond (keyword? color) @@ -141,43 +19,25 @@ :else colors/black)) -(defn desktop-icon - [name {:keys [color container-style style accessibility-label width height] - :or {accessibility-label :icon}}] - (let [default-viewbox {:width 24 :height 24} - icon-style (if width - (assoc default-viewbox :width width :height height) - default-viewbox) - color-style {:tint-color (match-color color)}] - [react/view {:style container-style - :accessibility-label accessibility-label} - [react/image {:source (get icons name) - :style (merge icon-style color-style style)}]])) - -(defn mobile-icon - [name {:keys [color container-style accessibility-label width height] - :or {accessibility-label :icon}}] - ^{:key name} - [react/view - {:style (or - container-style - {:width (or width 24) - :height (or height 24)}) - :accessibility-label accessibility-label} - [react/image {:source {:uri (keyword (clojure.core/name name))} - :style (cond-> {:width (or width 24) - :height (or height 24)} - color - (assoc :tint-color (match-color color)))}]]) - (defn icon ([name] (icon name nil)) - ([name options] - (let [icon-fn (if platform/desktop? desktop-icon mobile-icon)] - [icon-fn name options]))) + ([name {:keys [color container-style accessibility-label width height] + :or {accessibility-label :icon}}] + ^{:key name} + [react/view + {:style (or + container-style + {:width (or width 24) + :height (or height 24)}) + :accessibility-label accessibility-label} + [react/image {:source {:uri (keyword (clojure.core/name name))} + :style (cond-> {:width (or width 24) + :height (or height 24)} + color + (assoc :tint-color (match-color color)))}]])) (defn tiny-icon ([name] (tiny-icon name {})) ([name options] (icon name (merge {:width 16 :height 16} - options)))) + options)))) \ No newline at end of file diff --git a/test/cljs/status_im/react_native/js_dependencies.cljs b/test/cljs/status_im/react_native/js_dependencies.cljs index d612d650ca..a6947ae69f 100644 --- a/test/cljs/status_im/react_native/js_dependencies.cljs +++ b/test/cljs/status_im/react_native/js_dependencies.cljs @@ -26,7 +26,6 @@ (def webview-bridge (fn [] #js {:default #js {}})) (def webview (fn [] #js {:WebView #js {}})) (def touchid (fn [] #js {})) -(def svg (fn [] #js {:default #js {}})) (def status-keycard (fn [] #js {:default #js {}})) (defrecord Notification [])