def url_port
import near-v-framework@0.4.0.0/domain/architecture/system/deployment/nix_darwin/effects.bend as Effectsimport Base
173# The port of a "host:port" key or a proxy URL.
174def url_port(+w: String) -> String:
175 Maybe.default(&2, String, List.head(&2, String, String.split(last_of(w, ':'), '/')), "")