text
stringlengths
1
22.8M
```yaml # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: labels: operator.kubevirt.io: "" name: kubevirts.kubevirt.io spec: group: kubevirt.io names: categories: - all kind: KubeVirt plural: kubevirts shortNames: - kv - kvs singular: kubevirt scope: Namespaced versions: - additionalPrinterColumns: - jsonPath: .metadata.creationTimestamp name: Age type: date - jsonPath: .status.phase name: Phase type: string name: v1 schema: openAPIV3Schema: description: KubeVirt represents the object deploying all KubeVirt resources properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: path_to_url#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: path_to_url#types-kinds' type: string metadata: type: object spec: properties: certificateRotateStrategy: properties: selfSigned: properties: ca: description: CA configuration CA certs are kept in the CA bundle as long as they are valid properties: duration: description: The requested 'duration' (i.e. lifetime) of the Certificate. type: string renewBefore: description: The amount of time before the currently issued certificate's "notAfter" time that we will begin to attempt to renew the certificate. type: string type: object caOverlapInterval: description: Deprecated. Use CA.Duration and CA.RenewBefore instead type: string caRotateInterval: description: Deprecated. Use CA.Duration instead type: string certRotateInterval: description: Deprecated. Use Server.Duration instead type: string server: description: Server configuration Certs are rotated and discarded properties: duration: description: The requested 'duration' (i.e. lifetime) of the Certificate. type: string renewBefore: description: The amount of time before the currently issued certificate's "notAfter" time that we will begin to attempt to renew the certificate. type: string type: object type: object type: object configuration: description: holds kubevirt configurations. same as the virt-configMap properties: additionalGuestMemoryOverheadRatio: description: AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. type: string apiConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object architectureConfiguration: properties: amd64: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object arm64: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object defaultArchitecture: type: string ppc64le: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object type: object autoCPULimitNamespaceLabelSelector: description: When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object controllerConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object cpuModel: type: string cpuRequest: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true defaultRuntimeClass: type: string developerConfiguration: description: DeveloperConfiguration holds developer options properties: cpuAllocationRatio: description: 'For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: path_to_url#node-cpu-allocation-ratio Defaults to 10' type: integer diskVerification: description: DiskVerification holds container disks verification limits properties: memoryLimit: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true required: - memoryLimit type: object featureGates: description: FeatureGates is the list of experimental features to enable. Defaults to none items: type: string type: array logVerbosity: description: LogVerbosity sets log verbosity level of various components properties: nodeVerbosity: additionalProperties: type: integer description: NodeVerbosity represents a map of nodes with a specific verbosity level type: object virtAPI: type: integer virtController: type: integer virtHandler: type: integer virtLauncher: type: integer virtOperator: type: integer type: object memoryOvercommit: description: MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will "see" 2% more memory than its parent pod. Values under 100 are effectively "undercommits". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 type: integer minimumClusterTSCFrequency: description: Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. format: int64 type: integer minimumReservePVCBytes: description: MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) format: int64 type: integer nodeSelectors: additionalProperties: type: string description: NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none type: object pvcTolerateLessSpaceUpToPercent: description: LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 type: integer useEmulation: description: UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false type: boolean type: object emulatedMachines: items: type: string type: array evictionStrategy: description: EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. type: string handlerConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object imagePullPolicy: description: PullPolicy describes a policy for if/when to pull a container image type: string ksmConfiguration: description: KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). properties: nodeLabelSelector: description: NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object type: object liveUpdateConfiguration: description: LiveUpdateConfiguration holds defaults for live update features properties: maxCpuSockets: description: MaxCpuSockets holds the maximum amount of sockets that can be hotplugged format: int32 type: integer maxGuest: anyOf: - type: integer - type: string description: MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true maxHotplugRatio: description: 'MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4' format: int32 type: integer type: object machineType: description: Deprecated. Use architectureConfiguration instead. type: string mediatedDevicesConfiguration: description: MediatedDevicesConfiguration holds information about MDEV types to be defined, if available properties: mediatedDeviceTypes: items: type: string type: array x-kubernetes-list-type: atomic mediatedDevicesTypes: description: Deprecated. Use mediatedDeviceTypes instead. items: type: string type: array x-kubernetes-list-type: atomic nodeMediatedDeviceTypes: items: description: NodeMediatedDeviceTypesConfig holds information about MDEV types to be defined in a specific node that matches the NodeSelector field. properties: mediatedDeviceTypes: items: type: string type: array x-kubernetes-list-type: atomic mediatedDevicesTypes: description: Deprecated. Use mediatedDeviceTypes instead. items: type: string type: array x-kubernetes-list-type: atomic nodeSelector: additionalProperties: type: string description: 'NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node''s labels for the vmi to be scheduled on that node. More info: path_to_url type: object required: - nodeSelector type: object type: array x-kubernetes-list-type: atomic type: object memBalloonStatsPeriod: format: int32 type: integer migrations: description: MigrationConfiguration holds migration options. Can be overridden for specific groups of VMs though migration policies. Visit path_to_url for more information. properties: allowAutoConverge: description: AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false type: boolean allowPostCopy: description: AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false type: boolean bandwidthPerMigration: anyOf: - type: integer - type: string description: BandwidthPerMigration limits the amount of network bandwidth live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true completionTimeoutPerGiB: description: CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 800 format: int64 type: integer disableTLS: description: When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false type: boolean matchSELinuxLevelOnMigration: description: By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels. type: boolean network: description: Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. type: string nodeDrainTaintKey: description: 'NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain' type: string parallelMigrationsPerCluster: description: ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 format: int32 type: integer parallelOutboundMigrationsPerNode: description: ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 format: int32 type: integer progressTimeout: description: ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 format: int64 type: integer unsafeMigrationOverride: description: UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false type: boolean type: object minCPUModel: type: string network: description: NetworkConfiguration holds network options properties: binding: additionalProperties: properties: domainAttachmentType: description: 'DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: "tap". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1' type: string networkAttachmentDefinition: description: 'NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1' type: string sidecarImage: description: 'SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1' type: string type: object type: object defaultNetworkInterface: type: string permitBridgeInterfaceOnPodNetwork: type: boolean permitSlirpInterface: type: boolean type: object obsoleteCPUModels: additionalProperties: type: boolean type: object ovmfPath: type: string permittedHostDevices: description: PermittedHostDevices holds information about devices allowed for passthrough properties: mediatedDevices: items: description: MediatedHostDevice represents a host mediated device allowed for passthrough properties: externalResourceProvider: type: boolean mdevNameSelector: type: string resourceName: type: string required: - mdevNameSelector - resourceName type: object type: array x-kubernetes-list-type: atomic pciHostDevices: items: description: PciHostDevice represents a host PCI device allowed for passthrough properties: externalResourceProvider: description: If true, KubeVirt will leave the allocation and monitoring to an external device plugin type: boolean pciVendorSelector: description: The vendor_id:product_id tuple of the PCI device type: string resourceName: description: The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name type: string required: - pciVendorSelector - resourceName type: object type: array x-kubernetes-list-type: atomic usb: items: properties: externalResourceProvider: description: If true, KubeVirt will leave the allocation and monitoring to an external device plugin type: boolean resourceName: description: 'Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc' type: string selectors: items: properties: product: type: string vendor: type: string required: - product - vendor type: object type: array x-kubernetes-list-type: atomic required: - resourceName type: object type: array x-kubernetes-list-type: atomic type: object seccompConfiguration: description: SeccompConfiguration holds Seccomp configuration for Kubevirt components properties: virtualMachineInstanceProfile: description: VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none properties: customProfile: description: CustomProfile allows to request arbitrary profile for virt-launcher properties: localhostProfile: type: string runtimeDefaultProfile: type: boolean type: object type: object type: object selinuxLauncherType: type: string smbios: properties: family: type: string manufacturer: type: string product: type: string sku: type: string version: type: string type: object supportContainerResources: description: SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. items: description: SupportContainerResources are used to specify the cpu/memory request and limits for the containers that support various features of Virtual Machines. These containers are usually idle and don't require a lot of memory or cpu. properties: resources: description: ResourceRequirements describes the compute resource requirements. properties: claims: description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. \n This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. \n This field is immutable. It can only be set for containers." items: description: ResourceClaim references one entry in PodSpec.ResourceClaims. properties: name: description: Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. type: string required: - name type: object type: array x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map limits: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true description: 'Limits describes the maximum amount of compute resources allowed. More info: path_to_url type: object requests: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: path_to_url type: object type: object type: type: string required: - resources - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map supportedGuestAgentVersions: description: deprecated items: type: string type: array tlsConfiguration: description: TLSConfiguration holds TLS options properties: ciphers: items: type: string type: array x-kubernetes-list-type: set minTLSVersion: description: "MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: \n path_to_url \n Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: path_to_url" enum: - VersionTLS10 - VersionTLS11 - VersionTLS12 - VersionTLS13 type: string type: object virtualMachineInstancesPerNode: type: integer virtualMachineOptions: description: VirtualMachineOptions holds the cluster level information regarding the virtual machine. properties: disableFreePageReporting: description: DisableFreePageReporting disable the free page reporting of memory balloon device path_to_url#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. type: object disableSerialConsoleLog: description: DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named 'guest-console-log'. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled. type: object type: object vmStateStorageClass: description: VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. type: string webhookConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object type: object customizeComponents: properties: flags: description: Configure the value used for deployment and daemonset resources properties: api: additionalProperties: type: string type: object controller: additionalProperties: type: string type: object handler: additionalProperties: type: string type: object type: object patches: items: properties: patch: type: string resourceName: minLength: 1 type: string resourceType: minLength: 1 type: string type: type: string required: - patch - resourceName - resourceType - type type: object type: array x-kubernetes-list-type: atomic type: object imagePullPolicy: description: The ImagePullPolicy to use. type: string imagePullSecrets: description: The imagePullSecrets to pull the container images from Defaults to none items: description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. properties: name: description: 'Name of the referent. More info: path_to_url#names TODO: Add other useful fields. apiVersion, kind, uid?' type: string type: object type: array x-kubernetes-list-type: atomic imageRegistry: description: The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. type: string imageTag: description: The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. type: string infra: description: selectors and tolerations that should apply to KubeVirt infrastructure components properties: nodePlacement: description: nodePlacement describes scheduling configuration for specific KubeVirt components properties: affinity: description: affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See path_to_url#affinity-and-anti-affinity properties: nodeAffinity: description: Describes node affinity scheduling rules for the pod. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. items: description: An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). properties: preference: description: A node selector term, associated with the corresponding weight. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object weight: description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. format: int32 type: integer required: - preference - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: description: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object type: array required: - nodeSelectorTerms type: object type: object podAffinity: description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object podAntiAffinity: description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object type: object nodeSelector: additionalProperties: type: string description: 'nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See path_to_url#nodeselector' type: object tolerations: description: tolerations is a list of tolerations applied to the relevant kind of pods See path_to_url for more info. These are additional tolerations other than default ones. items: description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. properties: effect: description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. type: string tolerationSeconds: description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array type: object replicas: description: 'replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution!' type: integer type: object monitorAccount: description: The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s type: string monitorNamespace: description: The namespace Prometheus is deployed in Defaults to openshift-monitor type: string productComponent: description: Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. type: string productName: description: Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. type: string productVersion: description: Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. type: string serviceMonitorNamespace: description: The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. type: string uninstallStrategy: description: Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss type: string workloadUpdateStrategy: description: WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates properties: batchEvictionInterval: description: "BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns \n Defaults to 1 minute" type: string batchEvictionSize: description: "BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval \n Defaults to 10" type: integer workloadUpdateMethods: description: "WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown \n An empty list defaults to no automated workload updating" items: type: string type: array x-kubernetes-list-type: atomic type: object workloads: description: selectors and tolerations that should apply to KubeVirt workloads properties: nodePlacement: description: nodePlacement describes scheduling configuration for specific KubeVirt components properties: affinity: description: affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See path_to_url#affinity-and-anti-affinity properties: nodeAffinity: description: Describes node affinity scheduling rules for the pod. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. items: description: An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). properties: preference: description: A node selector term, associated with the corresponding weight. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object weight: description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. format: int32 type: integer required: - preference - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: description: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object type: array required: - nodeSelectorTerms type: object type: object podAffinity: description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object podAntiAffinity: description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object type: object nodeSelector: additionalProperties: type: string description: 'nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See path_to_url#nodeselector' type: object tolerations: description: tolerations is a list of tolerations applied to the relevant kind of pods See path_to_url for more info. These are additional tolerations other than default ones. items: description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. properties: effect: description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. type: string tolerationSeconds: description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array type: object replicas: description: 'replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution!' type: integer type: object type: object status: description: KubeVirtStatus represents information pertaining to a KubeVirt deployment. properties: conditions: items: description: KubeVirtCondition represents a condition of a KubeVirt deployment properties: lastProbeTime: format: date-time nullable: true type: string lastTransitionTime: format: date-time nullable: true type: string message: type: string reason: type: string status: type: string type: type: string required: - status - type type: object type: array defaultArchitecture: type: string generations: items: description: GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. properties: group: description: group is the group of the thing you're tracking type: string hash: description: hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps type: string lastGeneration: description: lastGeneration is the last generation of the workload controller involved format: int64 type: integer name: description: name is the name of the thing you're tracking type: string namespace: description: namespace is where the thing you're tracking is type: string resource: description: resource is the resource type of the thing you're tracking type: string required: - group - lastGeneration - name - resource type: object type: array x-kubernetes-list-type: atomic observedDeploymentConfig: type: string observedDeploymentID: type: string observedGeneration: format: int64 type: integer observedKubeVirtRegistry: type: string observedKubeVirtVersion: type: string operatorVersion: type: string outdatedVirtualMachineInstanceWorkloads: type: integer phase: description: KubeVirtPhase is a label for the phase of a KubeVirt deployment at the current time. type: string targetDeploymentConfig: type: string targetDeploymentID: type: string targetKubeVirtRegistry: type: string targetKubeVirtVersion: type: string type: object required: - spec type: object served: true storage: true subresources: status: {} - additionalPrinterColumns: - jsonPath: .metadata.creationTimestamp name: Age type: date - jsonPath: .status.phase name: Phase type: string deprecated: true deprecationWarning: kubevirt.io/v1alpha3 is now deprecated and will be removed in a future release. name: v1alpha3 schema: openAPIV3Schema: description: KubeVirt represents the object deploying all KubeVirt resources properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: path_to_url#resources' type: string kind: description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: path_to_url#types-kinds' type: string metadata: type: object spec: properties: certificateRotateStrategy: properties: selfSigned: properties: ca: description: CA configuration CA certs are kept in the CA bundle as long as they are valid properties: duration: description: The requested 'duration' (i.e. lifetime) of the Certificate. type: string renewBefore: description: The amount of time before the currently issued certificate's "notAfter" time that we will begin to attempt to renew the certificate. type: string type: object caOverlapInterval: description: Deprecated. Use CA.Duration and CA.RenewBefore instead type: string caRotateInterval: description: Deprecated. Use CA.Duration instead type: string certRotateInterval: description: Deprecated. Use Server.Duration instead type: string server: description: Server configuration Certs are rotated and discarded properties: duration: description: The requested 'duration' (i.e. lifetime) of the Certificate. type: string renewBefore: description: The amount of time before the currently issued certificate's "notAfter" time that we will begin to attempt to renew the certificate. type: string type: object type: object type: object configuration: description: holds kubevirt configurations. same as the virt-configMap properties: additionalGuestMemoryOverheadRatio: description: AdditionalGuestMemoryOverheadRatio can be used to increase the virtualization infrastructure overhead. This is useful, since the calculation of this overhead is not accurate and cannot be entirely known in advance. The ratio that is being set determines by which factor to increase the overhead calculated by Kubevirt. A higher ratio means that the VMs would be less compromised by node pressures, but would mean that fewer VMs could be scheduled to a node. If not set, the default is 1. type: string apiConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object architectureConfiguration: properties: amd64: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object arm64: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object defaultArchitecture: type: string ppc64le: properties: emulatedMachines: items: type: string type: array x-kubernetes-list-type: atomic machineType: type: string ovmfPath: type: string type: object type: object autoCPULimitNamespaceLabelSelector: description: When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object controllerConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object cpuModel: type: string cpuRequest: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true defaultRuntimeClass: type: string developerConfiguration: description: DeveloperConfiguration holds developer options properties: cpuAllocationRatio: description: 'For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: path_to_url#node-cpu-allocation-ratio Defaults to 10' type: integer diskVerification: description: DiskVerification holds container disks verification limits properties: memoryLimit: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true required: - memoryLimit type: object featureGates: description: FeatureGates is the list of experimental features to enable. Defaults to none items: type: string type: array logVerbosity: description: LogVerbosity sets log verbosity level of various components properties: nodeVerbosity: additionalProperties: type: integer description: NodeVerbosity represents a map of nodes with a specific verbosity level type: object virtAPI: type: integer virtController: type: integer virtHandler: type: integer virtLauncher: type: integer virtOperator: type: integer type: object memoryOvercommit: description: MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will "see" 2% more memory than its parent pod. Values under 100 are effectively "undercommits". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 type: integer minimumClusterTSCFrequency: description: Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. format: int64 type: integer minimumReservePVCBytes: description: MinimumReservePVCBytes is the amount of space, in bytes, to leave unused on disks. Defaults to 131072 (128KiB) format: int64 type: integer nodeSelectors: additionalProperties: type: string description: NodeSelectors allows restricting VMI creation to nodes that match a set of labels. Defaults to none type: object pvcTolerateLessSpaceUpToPercent: description: LessPVCSpaceToleration determines how much smaller, in percentage, disk PVCs are allowed to be compared to the requested size (to account for various overheads). Defaults to 10 type: integer useEmulation: description: UseEmulation can be set to true to allow fallback to software emulation in case hardware-assisted emulation is not available. Defaults to false type: boolean type: object emulatedMachines: items: type: string type: array evictionStrategy: description: EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. type: string handlerConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object imagePullPolicy: description: PullPolicy describes a policy for if/when to pull a container image type: string ksmConfiguration: description: KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). properties: nodeLabelSelector: description: NodeLabelSelector is a selector that filters in which nodes the KSM will be enabled. Empty NodeLabelSelector will enable ksm for every node. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object type: object liveUpdateConfiguration: description: LiveUpdateConfiguration holds defaults for live update features properties: maxCpuSockets: description: MaxCpuSockets holds the maximum amount of sockets that can be hotplugged format: int32 type: integer maxGuest: anyOf: - type: integer - type: string description: MaxGuest defines the maximum amount memory that can be allocated to the guest using hotplug. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true maxHotplugRatio: description: 'MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4' format: int32 type: integer type: object machineType: description: Deprecated. Use architectureConfiguration instead. type: string mediatedDevicesConfiguration: description: MediatedDevicesConfiguration holds information about MDEV types to be defined, if available properties: mediatedDeviceTypes: items: type: string type: array x-kubernetes-list-type: atomic mediatedDevicesTypes: description: Deprecated. Use mediatedDeviceTypes instead. items: type: string type: array x-kubernetes-list-type: atomic nodeMediatedDeviceTypes: items: description: NodeMediatedDeviceTypesConfig holds information about MDEV types to be defined in a specific node that matches the NodeSelector field. properties: mediatedDeviceTypes: items: type: string type: array x-kubernetes-list-type: atomic mediatedDevicesTypes: description: Deprecated. Use mediatedDeviceTypes instead. items: type: string type: array x-kubernetes-list-type: atomic nodeSelector: additionalProperties: type: string description: 'NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node''s labels for the vmi to be scheduled on that node. More info: path_to_url type: object required: - nodeSelector type: object type: array x-kubernetes-list-type: atomic type: object memBalloonStatsPeriod: format: int32 type: integer migrations: description: MigrationConfiguration holds migration options. Can be overridden for specific groups of VMs though migration policies. Visit path_to_url for more information. properties: allowAutoConverge: description: AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false type: boolean allowPostCopy: description: AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false type: boolean bandwidthPerMigration: anyOf: - type: integer - type: string description: BandwidthPerMigration limits the amount of network bandwidth live migrations are allowed to use. The value is in quantity per second. Defaults to 0 (no limit) pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true completionTimeoutPerGiB: description: CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If a live-migration takes longer to migrate than this value multiplied by the size of the VMI, the migration will be cancelled, unless AllowPostCopy is true. Defaults to 800 format: int64 type: integer disableTLS: description: When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false type: boolean matchSELinuxLevelOnMigration: description: By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels. type: boolean network: description: Network is the name of the CNI network to use for live migrations. By default, migrations go through the pod network. type: string nodeDrainTaintKey: description: 'NodeDrainTaintKey defines the taint key that indicates a node should be drained. Note: this option relies on the deprecated node taint feature. Default: kubevirt.io/drain' type: string parallelMigrationsPerCluster: description: ParallelMigrationsPerCluster is the total number of concurrent live migrations allowed cluster-wide. Defaults to 5 format: int32 type: integer parallelOutboundMigrationsPerNode: description: ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 format: int32 type: integer progressTimeout: description: ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 format: int64 type: integer unsafeMigrationOverride: description: UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false type: boolean type: object minCPUModel: type: string network: description: NetworkConfiguration holds network options properties: binding: additionalProperties: properties: domainAttachmentType: description: 'DomainAttachmentType is a standard domain network attachment method kubevirt supports. Supported values: "tap". The standard domain attachment can be used instead or in addition to the sidecarImage. version: 1alphav1' type: string networkAttachmentDefinition: description: 'NetworkAttachmentDefinition references to a NetworkAttachmentDefinition CR object. Format: <name>, <namespace>/<name>. If namespace is not specified, VMI namespace is assumed. version: 1alphav1' type: string sidecarImage: description: 'SidecarImage references a container image that runs in the virt-launcher pod. The sidecar handles (libvirt) domain configuration and optional services. version: 1alphav1' type: string type: object type: object defaultNetworkInterface: type: string permitBridgeInterfaceOnPodNetwork: type: boolean permitSlirpInterface: type: boolean type: object obsoleteCPUModels: additionalProperties: type: boolean type: object ovmfPath: type: string permittedHostDevices: description: PermittedHostDevices holds information about devices allowed for passthrough properties: mediatedDevices: items: description: MediatedHostDevice represents a host mediated device allowed for passthrough properties: externalResourceProvider: type: boolean mdevNameSelector: type: string resourceName: type: string required: - mdevNameSelector - resourceName type: object type: array x-kubernetes-list-type: atomic pciHostDevices: items: description: PciHostDevice represents a host PCI device allowed for passthrough properties: externalResourceProvider: description: If true, KubeVirt will leave the allocation and monitoring to an external device plugin type: boolean pciVendorSelector: description: The vendor_id:product_id tuple of the PCI device type: string resourceName: description: The name of the resource that is representing the device. Exposed by a device plugin and requested by VMs. Typically of the form vendor.com/product_name type: string required: - pciVendorSelector - resourceName type: object type: array x-kubernetes-list-type: atomic usb: items: properties: externalResourceProvider: description: If true, KubeVirt will leave the allocation and monitoring to an external device plugin type: boolean resourceName: description: 'Identifies the list of USB host devices. e.g: kubevirt.io/storage, kubevirt.io/bootable-usb, etc' type: string selectors: items: properties: product: type: string vendor: type: string required: - product - vendor type: object type: array x-kubernetes-list-type: atomic required: - resourceName type: object type: array x-kubernetes-list-type: atomic type: object seccompConfiguration: description: SeccompConfiguration holds Seccomp configuration for Kubevirt components properties: virtualMachineInstanceProfile: description: VirtualMachineInstanceProfile defines what profile should be used with virt-launcher. Defaults to none properties: customProfile: description: CustomProfile allows to request arbitrary profile for virt-launcher properties: localhostProfile: type: string runtimeDefaultProfile: type: boolean type: object type: object type: object selinuxLauncherType: type: string smbios: properties: family: type: string manufacturer: type: string product: type: string sku: type: string version: type: string type: object supportContainerResources: description: SupportContainerResources specifies the resource requirements for various types of supporting containers such as container disks/virtiofs/sidecars and hotplug attachment pods. If omitted a sensible default will be supplied. items: description: SupportContainerResources are used to specify the cpu/memory request and limits for the containers that support various features of Virtual Machines. These containers are usually idle and don't require a lot of memory or cpu. properties: resources: description: ResourceRequirements describes the compute resource requirements. properties: claims: description: "Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. \n This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. \n This field is immutable. It can only be set for containers." items: description: ResourceClaim references one entry in PodSpec.ResourceClaims. properties: name: description: Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. type: string required: - name type: object type: array x-kubernetes-list-map-keys: - name x-kubernetes-list-type: map limits: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true description: 'Limits describes the maximum amount of compute resources allowed. More info: path_to_url type: object requests: additionalProperties: anyOf: - type: integer - type: string pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ x-kubernetes-int-or-string: true description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: path_to_url type: object type: object type: type: string required: - resources - type type: object type: array x-kubernetes-list-map-keys: - type x-kubernetes-list-type: map supportedGuestAgentVersions: description: deprecated items: type: string type: array tlsConfiguration: description: TLSConfiguration holds TLS options properties: ciphers: items: type: string type: array x-kubernetes-list-type: set minTLSVersion: description: "MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: \n path_to_url \n Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: path_to_url" enum: - VersionTLS10 - VersionTLS11 - VersionTLS12 - VersionTLS13 type: string type: object virtualMachineInstancesPerNode: type: integer virtualMachineOptions: description: VirtualMachineOptions holds the cluster level information regarding the virtual machine. properties: disableFreePageReporting: description: DisableFreePageReporting disable the free page reporting of memory balloon device path_to_url#memory-balloon-device. This will have effect only if AutoattachMemBalloon is not false and the vmi is not requesting any high performance feature (dedicatedCPU/realtime/hugePages), in which free page reporting is always disabled. type: object disableSerialConsoleLog: description: DisableSerialConsoleLog disables logging the auto-attached default serial console. If not set, serial console logs will be written to a file and then streamed from a container named 'guest-console-log'. The value can be individually overridden for each VM, not relevant if AutoattachSerialConsole is disabled. type: object type: object vmStateStorageClass: description: VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. type: string webhookConfiguration: description: ReloadableComponentConfiguration holds all generic k8s configuration options which can be reloaded by components without requiring a restart. properties: restClient: description: RestClient can be used to tune certain aspects of the k8s client in use. properties: rateLimiter: description: RateLimiter allows selecting and configuring different rate limiters for the k8s client. properties: tokenBucketRateLimiter: properties: burst: description: Maximum burst for throttle. If it's zero, the component default will be used type: integer qps: description: QPS indicates the maximum QPS to the apiserver from this client. If it's zero, the component default will be used type: number required: - burst - qps type: object type: object type: object type: object type: object customizeComponents: properties: flags: description: Configure the value used for deployment and daemonset resources properties: api: additionalProperties: type: string type: object controller: additionalProperties: type: string type: object handler: additionalProperties: type: string type: object type: object patches: items: properties: patch: type: string resourceName: minLength: 1 type: string resourceType: minLength: 1 type: string type: type: string required: - patch - resourceName - resourceType - type type: object type: array x-kubernetes-list-type: atomic type: object imagePullPolicy: description: The ImagePullPolicy to use. type: string imagePullSecrets: description: The imagePullSecrets to pull the container images from Defaults to none items: description: LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. properties: name: description: 'Name of the referent. More info: path_to_url#names TODO: Add other useful fields. apiVersion, kind, uid?' type: string type: object type: array x-kubernetes-list-type: atomic imageRegistry: description: The image registry to pull the container images from Defaults to the same registry the operator's container image is pulled from. type: string imageTag: description: The image tag to use for the continer images installed. Defaults to the same tag as the operator's container image. type: string infra: description: selectors and tolerations that should apply to KubeVirt infrastructure components properties: nodePlacement: description: nodePlacement describes scheduling configuration for specific KubeVirt components properties: affinity: description: affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See path_to_url#affinity-and-anti-affinity properties: nodeAffinity: description: Describes node affinity scheduling rules for the pod. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. items: description: An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). properties: preference: description: A node selector term, associated with the corresponding weight. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object weight: description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. format: int32 type: integer required: - preference - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: description: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object type: array required: - nodeSelectorTerms type: object type: object podAffinity: description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object podAntiAffinity: description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object type: object nodeSelector: additionalProperties: type: string description: 'nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See path_to_url#nodeselector' type: object tolerations: description: tolerations is a list of tolerations applied to the relevant kind of pods See path_to_url for more info. These are additional tolerations other than default ones. items: description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. properties: effect: description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. type: string tolerationSeconds: description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array type: object replicas: description: 'replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution!' type: integer type: object monitorAccount: description: The name of the Prometheus service account that needs read-access to KubeVirt endpoints Defaults to prometheus-k8s type: string monitorNamespace: description: The namespace Prometheus is deployed in Defaults to openshift-monitor type: string productComponent: description: Designate the apps.kubevirt.io/component label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductComponent is not specified, the component label default value is kubevirt. type: string productName: description: Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. type: string productVersion: description: Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. type: string serviceMonitorNamespace: description: The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. type: string uninstallStrategy: description: Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss type: string workloadUpdateStrategy: description: WorkloadUpdateStrategy defines at the cluster level how to handle automated workload updates properties: batchEvictionInterval: description: "BatchEvictionInterval Represents the interval to wait before issuing the next batch of shutdowns \n Defaults to 1 minute" type: string batchEvictionSize: description: "BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval \n Defaults to 10" type: integer workloadUpdateMethods: description: "WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown \n An empty list defaults to no automated workload updating" items: type: string type: array x-kubernetes-list-type: atomic type: object workloads: description: selectors and tolerations that should apply to KubeVirt workloads properties: nodePlacement: description: nodePlacement describes scheduling configuration for specific KubeVirt components properties: affinity: description: affinity enables pod affinity/anti-affinity placement expanding the types of constraints that can be expressed with nodeSelector. affinity is going to be applied to the relevant kind of pods in parallel with nodeSelector See path_to_url#affinity-and-anti-affinity properties: nodeAffinity: description: Describes node affinity scheduling rules for the pod. properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. items: description: An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). properties: preference: description: A node selector term, associated with the corresponding weight. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object weight: description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. format: int32 type: integer required: - preference - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. items: description: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. properties: matchExpressions: description: A list of node selector requirements by node's labels. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchFields: description: A list of node selector requirements by node's fields. items: description: A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: The label key that the selector applies to. type: string operator: description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. type: string values: description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array type: object type: array required: - nodeSelectorTerms type: object type: object podAffinity: description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object podAntiAffinity: description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). properties: preferredDuringSchedulingIgnoredDuringExecution: description: The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. items: description: The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) properties: podAffinityTerm: description: Required. A pod affinity term, associated with the corresponding weight. properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object weight: description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100. format: int32 type: integer required: - podAffinityTerm - weight type: object type: array requiredDuringSchedulingIgnoredDuringExecution: description: If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. items: description: Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running properties: labelSelector: description: A label query over a set of resources, in this case pods. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaceSelector: description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. properties: matchExpressions: description: matchExpressions is a list of label selector requirements. The requirements are ANDed. items: description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. properties: key: description: key is the label key that the selector applies to. type: string operator: description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. type: string values: description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. items: type: string type: array required: - key - operator type: object type: array matchLabels: additionalProperties: type: string description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. type: object type: object namespaces: description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". items: type: string type: array topologyKey: description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. type: string required: - topologyKey type: object type: array type: object type: object nodeSelector: additionalProperties: type: string description: 'nodeSelector is the node selector applied to the relevant kind of pods It specifies a map of key-value pairs: for the pod to be eligible to run on a node, the node must have each of the indicated key-value pairs as labels (it can have additional labels as well). See path_to_url#nodeselector' type: object tolerations: description: tolerations is a list of tolerations applied to the relevant kind of pods See path_to_url for more info. These are additional tolerations other than default ones. items: description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. properties: effect: description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. type: string key: description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. type: string operator: description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. type: string tolerationSeconds: description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. format: int64 type: integer value: description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. type: string type: object type: array type: object replicas: description: 'replicas indicates how many replicas should be created for each KubeVirt infrastructure component (like virt-api or virt-controller). Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling for core kubevirt components. Please use with caution!' type: integer type: object type: object status: description: KubeVirtStatus represents information pertaining to a KubeVirt deployment. properties: conditions: items: description: KubeVirtCondition represents a condition of a KubeVirt deployment properties: lastProbeTime: format: date-time nullable: true type: string lastTransitionTime: format: date-time nullable: true type: string message: type: string reason: type: string status: type: string type: type: string required: - status - type type: object type: array defaultArchitecture: type: string generations: items: description: GenerationStatus keeps track of the generation for a given resource so that decisions about forced updates can be made. properties: group: description: group is the group of the thing you're tracking type: string hash: description: hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps type: string lastGeneration: description: lastGeneration is the last generation of the workload controller involved format: int64 type: integer name: description: name is the name of the thing you're tracking type: string namespace: description: namespace is where the thing you're tracking is type: string resource: description: resource is the resource type of the thing you're tracking type: string required: - group - lastGeneration - name - resource type: object type: array x-kubernetes-list-type: atomic observedDeploymentConfig: type: string observedDeploymentID: type: string observedGeneration: format: int64 type: integer observedKubeVirtRegistry: type: string observedKubeVirtVersion: type: string operatorVersion: type: string outdatedVirtualMachineInstanceWorkloads: type: integer phase: description: KubeVirtPhase is a label for the phase of a KubeVirt deployment at the current time. type: string targetDeploymentConfig: type: string targetDeploymentID: type: string targetKubeVirtRegistry: type: string targetKubeVirtVersion: type: string type: object required: - spec type: object served: true storage: false subresources: status: {} ```
```c++ /* * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ #include <jni/LocalString.h> #include <fb/Environment.h> #include <fb/assert.h> #include <vector> namespace facebook { namespace jni { namespace { const uint16_t kUtf8OneByteBoundary = 0x80; const uint16_t kUtf8TwoBytesBoundary = 0x800; const uint16_t kUtf16HighSubLowBoundary = 0xD800; const uint16_t kUtf16HighSubHighBoundary = 0xDC00; const uint16_t kUtf16LowSubHighBoundary = 0xE000; inline void encode3ByteUTF8(char32_t code, uint8_t* out) { FBASSERTMSGF((code & 0xffff0000) == 0, "3 byte utf-8 encodings only valid for up to 16 bits"); out[0] = 0xE0 | (code >> 12); out[1] = 0x80 | ((code >> 6) & 0x3F); out[2] = 0x80 | (code & 0x3F); } inline char32_t decode3ByteUTF8(const uint8_t* in) { return (((in[0] & 0x0f) << 12) | ((in[1] & 0x3f) << 6) | ( in[2] & 0x3f)); } inline void encode4ByteUTF8(char32_t code, std::string& out, size_t offset) { FBASSERTMSGF((code & 0xfff80000) == 0, "4 byte utf-8 encodings only valid for up to 21 bits"); out[offset] = (char) (0xF0 | (code >> 18)); out[offset + 1] = (char) (0x80 | ((code >> 12) & 0x3F)); out[offset + 2] = (char) (0x80 | ((code >> 6) & 0x3F)); out[offset + 3] = (char) (0x80 | (code & 0x3F)); } template <typename T> inline bool isFourByteUTF8Encoding(const T* utf8) { return ((*utf8 & 0xF8) == 0xF0); } } namespace detail { size_t modifiedLength(const std::string& str) { // Scan for supplementary characters size_t j = 0; for (size_t i = 0; i < str.size(); ) { if (str[i] == 0) { i += 1; j += 2; } else if (i + 4 > str.size() || !isFourByteUTF8Encoding(&(str[i]))) { // See the code in utf8ToModifiedUTF8 for what's happening here. i += 1; j += 1; } else { i += 4; j += 6; } } return j; } // returns modified utf8 length; *length is set to strlen(str) size_t modifiedLength(const uint8_t* str, size_t* length) { // NUL-terminated: Scan for length and supplementary characters size_t i = 0; size_t j = 0; if (str != nullptr) { while (str[i] != 0) { if (str[i + 1] == 0 || str[i + 2] == 0 || str[i + 3] == 0 || !isFourByteUTF8Encoding(&(str[i]))) { i += 1; j += 1; } else { i += 4; j += 6; } } } *length = i; return j; } void utf8ToModifiedUTF8(const uint8_t* utf8, size_t len, uint8_t* modified, size_t modifiedBufLen) { size_t j = 0; for (size_t i = 0; i < len; ) { FBASSERTMSGF(j < modifiedBufLen, "output buffer is too short"); if (utf8[i] == 0) { FBASSERTMSGF(j + 1 < modifiedBufLen, "output buffer is too short"); modified[j] = 0xc0; modified[j + 1] = 0x80; i += 1; j += 2; continue; } if (i + 4 > len || !isFourByteUTF8Encoding(utf8 + i)) { // If the input is too short for this to be a four-byte // encoding, or it isn't one for real, just copy it on through. modified[j] = utf8[i]; i++; j++; continue; } // Convert 4 bytes of input to 2 * 3 bytes of output char32_t code = (((utf8[i] & 0x07) << 18) | ((utf8[i + 1] & 0x3f) << 12) | ((utf8[i + 2] & 0x3f) << 6) | ( utf8[i + 3] & 0x3f)); char32_t first; char32_t second; if (code > 0x10ffff) { // These could be valid utf-8, but cannot be represented as modified UTF-8, due to the 20-bit // limit on that representation. Encode two replacement characters, so the expected output // length lines up. const char32_t kUnicodeReplacementChar = 0xfffd; first = kUnicodeReplacementChar; second = kUnicodeReplacementChar; } else { // split into surrogate pair first = ((code - 0x010000) >> 10) | 0xd800; second = ((code - 0x010000) & 0x3ff) | 0xdc00; } // encode each as a 3 byte surrogate value FBASSERTMSGF(j + 5 < modifiedBufLen, "output buffer is too short"); encode3ByteUTF8(first, modified + j); encode3ByteUTF8(second, modified + j + 3); i += 4; j += 6; } FBASSERTMSGF(j < modifiedBufLen, "output buffer is too short"); modified[j++] = '\0'; } std::string modifiedUTF8ToUTF8(const uint8_t* modified, size_t len) noexcept { // Converting from modified utf8 to utf8 will always shrink, so this will always be sufficient std::string utf8(len, 0); size_t j = 0; for (size_t i = 0; i < len; ) { // surrogate pair: 1101 10xx xxxx xxxx 1101 11xx xxxx xxxx // encoded pair: 1110 1101 1010 xxxx 10xx xxxx 1110 1101 1011 xxxx 10xx xxxx if (len >= i + 6 && modified[i] == 0xed && (modified[i + 1] & 0xf0) == 0xa0 && modified[i + 3] == 0xed && (modified[i + 4] & 0xf0) == 0xb0) { // Valid surrogate pair char32_t pair1 = decode3ByteUTF8(modified + i); char32_t pair2 = decode3ByteUTF8(modified + i + 3); char32_t ch = 0x10000 + (((pair1 & 0x3ff) << 10) | ( pair2 & 0x3ff)); encode4ByteUTF8(ch, utf8, j); i += 6; j += 4; continue; } else if (len >= i + 2 && modified[i] == 0xc0 && modified[i + 1] == 0x80) { utf8[j] = 0; i += 2; j += 1; continue; } // copy one byte. This might be a one, two, or three-byte encoding. It might be an invalid // encoding of some sort, but garbage in garbage out is ok. utf8[j] = (char) modified[i]; i++; j++; } utf8.resize(j); return utf8; } // Calculate how many bytes are needed to convert an UTF16 string into UTF8 // UTF16 string size_t utf16toUTF8Length(const uint16_t* utf16String, size_t utf16StringLen) { if (!utf16String || utf16StringLen == 0) { return 0; } uint32_t utf8StringLen = 0; auto utf16StringEnd = utf16String + utf16StringLen; auto idx16 = utf16String; while (idx16 < utf16StringEnd) { auto ch = *idx16++; if (ch < kUtf8OneByteBoundary) { utf8StringLen++; } else if (ch < kUtf8TwoBytesBoundary) { utf8StringLen += 2; } else if ( (ch >= kUtf16HighSubLowBoundary) && (ch < kUtf16HighSubHighBoundary) && (idx16 < utf16StringEnd) && (*idx16 >= kUtf16HighSubHighBoundary) && (*idx16 < kUtf16LowSubHighBoundary)) { utf8StringLen += 4; idx16++; } else { utf8StringLen += 3; } } return utf8StringLen; } std::string utf16toUTF8(const uint16_t* utf16String, size_t utf16StringLen) noexcept { if (!utf16String || utf16StringLen <= 0) { return ""; } std::string utf8String(utf16toUTF8Length(utf16String, utf16StringLen), '\0'); auto idx8 = utf8String.begin(); auto idx16 = utf16String; auto utf16StringEnd = utf16String + utf16StringLen; while (idx16 < utf16StringEnd) { auto ch = *idx16++; if (ch < kUtf8OneByteBoundary) { *idx8++ = (ch & 0x7F); } else if (ch < kUtf8TwoBytesBoundary) { *idx8++ = 0b11000000 | (ch >> 6); *idx8++ = 0b10000000 | (ch & 0x3F); } else if ( (ch >= kUtf16HighSubLowBoundary) && (ch < kUtf16HighSubHighBoundary) && (idx16 < utf16StringEnd) && (*idx16 >= kUtf16HighSubHighBoundary) && (*idx16 < kUtf16LowSubHighBoundary)) { auto ch2 = *idx16++; uint8_t trunc_byte = (((ch >> 6) & 0x0F) + 1); *idx8++ = 0b11110000 | (trunc_byte >> 2); *idx8++ = 0b10000000 | ((trunc_byte & 0x03) << 4) | ((ch >> 2) & 0x0F); *idx8++ = 0b10000000 | ((ch & 0x03) << 4) | ((ch2 >> 6) & 0x0F); *idx8++ = 0b10000000 | (ch2 & 0x3F); } else { *idx8++ = 0b11100000 | (ch >> 12); *idx8++ = 0b10000000 | ((ch >> 6) & 0x3F); *idx8++ = 0b10000000 | (ch & 0x3F); } } return utf8String; } } LocalString::LocalString(const std::string& str) { size_t modlen = detail::modifiedLength(str); if (modlen == str.size()) { // no supplementary characters, build jstring from input buffer m_string = Environment::current()->NewStringUTF(str.data()); return; } auto modified = std::vector<char>(modlen + 1); // allocate extra byte for \0 detail::utf8ToModifiedUTF8( reinterpret_cast<const uint8_t*>(str.data()), str.size(), reinterpret_cast<uint8_t*>(modified.data()), modified.size()); m_string = Environment::current()->NewStringUTF(modified.data()); } LocalString::LocalString(const char* str) { size_t len; size_t modlen = detail::modifiedLength(reinterpret_cast<const uint8_t*>(str), &len); if (modlen == len) { // no supplementary characters, build jstring from input buffer m_string = Environment::current()->NewStringUTF(str); return; } auto modified = std::vector<char>(modlen + 1); // allocate extra byte for \0 detail::utf8ToModifiedUTF8( reinterpret_cast<const uint8_t*>(str), len, reinterpret_cast<uint8_t*>(modified.data()), modified.size()); m_string = Environment::current()->NewStringUTF(modified.data()); } LocalString::~LocalString() { Environment::current()->DeleteLocalRef(m_string); } std::string fromJString(JNIEnv* env, jstring str) { auto utf16String = JStringUtf16Extractor(env, str); return detail::utf16toUTF8(utf16String.chars(), utf16String.length()); } } } ```
"Quem terra, pontus, sidera", also known by its more ancient name, "Quem terra, pontus, aethera", is a latin-language Christian hymn in long metre, in honour of the virgin Mary, mother of Jesus, attributed to Venantius Fortunatus. The Roman Breviary divides it into two parts: the first, beginning with "Quem terra, pontus, sidera", assigned to Matins; the second, beginning with "O gloriosa virginum", similarly assigned to Lauds. Both parts conclude with the doxology of Marian hymns, "Jesu tibi sit gloria etc." As found in breviaries following the reforms of Urban VIII and preceding the reforms of Paul VI, the hymns are revisions, in the interest of classical prosody, of the older hymn, "Quem terra, pontus, æthera", found in many old breviaries and in manuscripts dating from the eighth century. Its ancient form was restored in the modern Liturgy of the Hours. In the Cistercian office it was sung officially at Compline during Advent. Sometimes it was divided into two parts, as in the Roman Breviary, the second part beginning with "O gloriosa Domina" (or "femina"). References Text in Latin with English translation Christian hymns in Latin Marian hymns
```java package org.web3j.tuples.generated; import org.web3j.tuples.Tuple; /** * Auto generated code. * <p><strong>Do not modifiy!</strong> * <p>Please use org.web3j.codegen.TupleGenerator in the * <a href="path_to_url">codegen module</a> to update. */ public final class Tuple10<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> implements Tuple { private static final int SIZE = 10; private final T1 value1; private final T2 value2; private final T3 value3; private final T4 value4; private final T5 value5; private final T6 value6; private final T7 value7; private final T8 value8; private final T9 value9; private final T10 value10; public Tuple10(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7, T8 value8, T9 value9, T10 value10) { this.value1 = value1; this.value2 = value2; this.value3 = value3; this.value4 = value4; this.value5 = value5; this.value6 = value6; this.value7 = value7; this.value8 = value8; this.value9 = value9; this.value10 = value10; } /** * @deprecated use 'component1' method instead * @return returns a value * */ @Deprecated public T1 getValue1() { return value1; } public T1 component1() { return value1; } /** * @deprecated use 'component2' method instead * @return returns a value * */ @Deprecated public T2 getValue2() { return value2; } public T2 component2() { return value2; } /** * @deprecated use 'component3' method instead * @return returns a value * */ @Deprecated public T3 getValue3() { return value3; } public T3 component3() { return value3; } /** * @deprecated use 'component4' method instead * @return returns a value * */ @Deprecated public T4 getValue4() { return value4; } public T4 component4() { return value4; } /** * @deprecated use 'component5' method instead * @return returns a value * */ @Deprecated public T5 getValue5() { return value5; } public T5 component5() { return value5; } /** * @deprecated use 'component6' method instead * @return returns a value * */ @Deprecated public T6 getValue6() { return value6; } public T6 component6() { return value6; } /** * @deprecated use 'component7' method instead * @return returns a value * */ @Deprecated public T7 getValue7() { return value7; } public T7 component7() { return value7; } /** * @deprecated use 'component8' method instead * @return returns a value * */ @Deprecated public T8 getValue8() { return value8; } public T8 component8() { return value8; } /** * @deprecated use 'component9' method instead * @return a value */ @Deprecated public T9 getValue9() { return value9; } public T9 component9() { return value9; } /** * @deprecated use 'component10' method instead * @return returns a value * */ @Deprecated public T10 getValue10() { return value10; } public T10 component10() { return value10; } @Override public int getSize() { return SIZE; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Tuple10<?, ?, ?, ?, ?, ?, ?, ?, ?, ?> tuple10 = (Tuple10<?, ?, ?, ?, ?, ?, ?, ?, ?, ?>) o; if (value1 != null ? !value1.equals(tuple10.value1) : tuple10.value1 != null) { return false; } if (value2 != null ? !value2.equals(tuple10.value2) : tuple10.value2 != null) { return false; } if (value3 != null ? !value3.equals(tuple10.value3) : tuple10.value3 != null) { return false; } if (value4 != null ? !value4.equals(tuple10.value4) : tuple10.value4 != null) { return false; } if (value5 != null ? !value5.equals(tuple10.value5) : tuple10.value5 != null) { return false; } if (value6 != null ? !value6.equals(tuple10.value6) : tuple10.value6 != null) { return false; } if (value7 != null ? !value7.equals(tuple10.value7) : tuple10.value7 != null) { return false; } if (value8 != null ? !value8.equals(tuple10.value8) : tuple10.value8 != null) { return false; } if (value9 != null ? !value9.equals(tuple10.value9) : tuple10.value9 != null) { return false; } return value10 != null ? value10.equals(tuple10.value10) : tuple10.value10 == null; } @Override public int hashCode() { int result = value1.hashCode(); result = 31 * result + (value2 != null ? value2.hashCode() : 0); result = 31 * result + (value3 != null ? value3.hashCode() : 0); result = 31 * result + (value4 != null ? value4.hashCode() : 0); result = 31 * result + (value5 != null ? value5.hashCode() : 0); result = 31 * result + (value6 != null ? value6.hashCode() : 0); result = 31 * result + (value7 != null ? value7.hashCode() : 0); result = 31 * result + (value8 != null ? value8.hashCode() : 0); result = 31 * result + (value9 != null ? value9.hashCode() : 0); result = 31 * result + (value10 != null ? value10.hashCode() : 0); return result; } @Override public String toString() { return "Tuple10{" + "value1=" + value1 + ", value2=" + value2 + ", value3=" + value3 + ", value4=" + value4 + ", value5=" + value5 + ", value6=" + value6 + ", value7=" + value7 + ", value8=" + value8 + ", value9=" + value9 + ", value10=" + value10 + "}"; } } ```
Henry August "Hank" Kuehne II (born September 11, 1975) is an American former U.S. Amateur champion and professional golfer who enjoyed some success on the PGA Tour. Kuehne was born in Dallas, Texas. His father started him playing golf at a young age. He has a sister (Kelli) who plays on the LPGA Tour, and a brother (Trip) who finished second to Tiger Woods in the 1994 U.S. Amateur and remains an amateur. Kuehne began his college career at Oklahoma State University, but later transferred to Southern Methodist University, where he earned All-American honors three times as a member of the golf team (third team in 1996, second team in 1998, and honorable mention in 1999). He won the 1998 U.S. Amateur and played on the 1998 U.S. Eisenhower Trophy team. He graduated from SMU in 1999 with a degree in communications and turned professional. Although he has several professional wins in non-Tour events, Kuehne's best finish on the PGA Tour has been a T-2 at both the 2003 Shell Houston Open and the 2005 John Deere Classic. His best result in a major is a 65th-place finish at the 1999 U.S. Open. In 2003, he won the Tour's Driving Distance title, unseating John Daly who had won eight consecutive titles and 11 in total. Kuehne missed the cut at the 2012 Honda Classic, his first PGA Tour event since 2007. Lingering back problems prevented Kuehne from playing for five years. Personal life Kuehne lives in Dallas, Texas and has three sons, Henry August Kuehne III (born 2005), Alexander James (AJ) Kuehne (born 2012) and Kroy Stefan Kuehne (born 2016). He was seen in public with tennis champion Venus Williams, whom he accompanied to the 2007 Wimbledon Championships and the 2007 U.S. Open. They broke up in 2010, after which Kuehne met his current wife Andy, whom he married in May 2011. Kuehne was initiated into Sigma Nu Fraternity while at Oklahoma State University (Epsilon Epsilon chapter). Amateur wins 1998 U.S. Amateur Professional wins (4) Canadian Tour wins (2) Other wins (2) Other playoff record (1–0) Results in major championships LA = Low amateur CUT = missed the half-way cut Note: Kuehne never played in The Open Championship. U.S. national team appearances Amateur Eisenhower Trophy: 1998 Palmer Cup: 1998 (tie), 1999 (winners) See also Monday Night Golf References External links American male golfers Oklahoma State Cowboys golfers SMU Mustangs men's golfers PGA Tour golfers Golfers from Dallas Golfers from Florida Sportspeople from Palm Beach Gardens, Florida 1975 births Living people
```java /* This file is part of the iText (R) project. Authors: Apryse Software. This program is offered under a commercial and under the AGPL license. For commercial licensing, contact us at path_to_url For AGPL licensing, see below. AGPL licensing: This program is free software: you can redistribute it and/or modify (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the along with this program. If not, see <path_to_url */ package com.itextpdf.styledxmlparser.jsoup.parser; import java.util.ArrayList; /** * A container for ParseErrors. */ public class ParseErrorList extends ArrayList<ParseError>{ private static final int INITIAL_CAPACITY = 16; private final int initialCapacity; private final int maxSize; ParseErrorList(int initialCapacity, int maxSize) { super(initialCapacity); this.initialCapacity = initialCapacity; this.maxSize = maxSize; } /** Create a new ParseErrorList with the same settings, but no errors in the list @param copy initial and max size details to copy */ ParseErrorList(ParseErrorList copy) { this(copy.initialCapacity, copy.maxSize); } boolean canAddError() { return size() < maxSize; } int getMaxSize() { return maxSize; } public static ParseErrorList noTracking() { return new ParseErrorList(0, 0); } public static ParseErrorList tracking(int maxSize) { return new ParseErrorList(INITIAL_CAPACITY, maxSize); } } ```
World Christianity or global Christianity has been defined both as a term that attempts to convey the global nature of the Christian religion and an academic field of study that encompasses analysis of the histories, practices, and discourses of Christianity as a world religion and its various forms as they are found on the six continents. However, the term often focuses on "non-Western Christianity" which "comprises (usually the exotic) instances of Christian faith in 'the global South', in Asia, Africa, and Latin America." It also includes Indigenous or diasporic forms of Christianity in the Caribbean, South America, Western Europe, and North America. History of the term The term world Christianity can first be found in the writings of Francis John McConnell in 1929 and Henry P. Van Dusen in 1947. Van Dusen was also instrumental in establishing the Henry W. Luce Visiting Professorship in World Christianity at Union Theological Seminary in 1945, with Francis C. M. Wei invited as its first incumbent. The term would likewise be used by the American historian and Baptist missionary Kenneth Scott Latourette, Professor of the History of Christianity at Yale Divinity School, to speak of the "World Christian Fellowship" and "World Christian Community". For these individuals, world Christianity was meant to promote the idea of Christian missions and ecumenical unity. However, after the end of World War II, as Christian missions ended in many countries, such as North Korea and China, and parts of Asia and Africa shifted due to decolonization and national independence, these aspects of world Christianity were largely lost. The current usage of the term puts much less emphasis in missions and ecumenism. A number of historians have noted a twentieth-century "global shift" in Christianity, from a religion largely found in Europe and the Americas to one which is found in the Global South and Third World countries. Hence, world Christianity has more recently been used to describe the diversity and the multiplicity of Christianity across its two-thousand-year history. Another term that is often used as analogous to world Christianity is the term global Christianity. However, scholars such as Lamin Sanneh have argued that global Christianity refers to a Eurocentric understanding of Christianity that emphasizes the replication of Christian forms and patterns in Europe, whereas world Christianity refers to the multiplicity of Indigenous responses to the Christian gospel. Philip Jenkins and Graham Joseph Hill contend that Sanneh's distinction between world Christianity and global Christianity is artificial and unnecessary. Notable figures Some notable figures in the academic study of world Christianity include Andrew Walls, Lamin Sanneh, and Brian Stanley, all three of whom are associated with the "Yale-Edinburgh Group on the History of the Missionary Movement and World Christianity". More recently, Klaus Koschorke and the “Munich School” of World Christianity has been highlighted for its contribution in understanding the polycentric nature of world Christianity. In contrast to these historians, there is a growing number of theologians who have been engaging the field of world Christianity from the discipline of systematic theology, ecclesiology, and missiology. Some examples of this include the Pentecostal Veli-Matti Kärkkäinen, Catholic Peter C. Phan, and the Baptist Graham Joseph Hill. See also Acculturation Afro-Brazilian religions Catholic Church and the Age of Discovery Cultural assimilation Inculturation Indigenous church mission theory Latin American liberation theology Missiology Native American people and Mormonism Neo-charismatic movement Political influence of Evangelicalism in Latin America Prosperity theology Reverse mission Timeline of Christian missions Translations of the Bible Bible translations into Native American languages Yale-Edinburgh Group References Further reading Young, F. Lionel III (2021). World Christianity and the Unfinished Task: A Very Short Introduction. Eugene, OR: Cascade Books. Christian terminology Christianity studies
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.shardingsphere.sql.parser.statement.core.segment.dml.column; import lombok.Getter; import lombok.Setter; import org.apache.shardingsphere.sql.parser.statement.core.segment.dml.expr.ExpressionSegment; import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.OwnerAvailable; import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.OwnerSegment; import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.ParenthesesSegment; import org.apache.shardingsphere.sql.parser.statement.core.segment.generic.bound.ColumnSegmentBoundInfo; import org.apache.shardingsphere.sql.parser.statement.core.value.identifier.IdentifierValue; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; /** * Column segment. */ @Getter @Setter public final class ColumnSegment implements ExpressionSegment, OwnerAvailable { private final int startIndex; private final int stopIndex; private final IdentifierValue identifier; private List<IdentifierValue> nestedObjectAttributes; private OwnerSegment owner; private ColumnSegmentBoundInfo columnBoundInfo; private ColumnSegmentBoundInfo otherUsingColumnBoundInfo; private boolean isVariable; private ParenthesesSegment leftParentheses; private ParenthesesSegment rightParentheses; public ColumnSegment(final int startIndex, final int stopIndex, final IdentifierValue identifier) { this.startIndex = startIndex; this.stopIndex = stopIndex; this.identifier = identifier; columnBoundInfo = new ColumnSegmentBoundInfo(identifier); } /** * Get qualified name with quote characters. * i.e. `field1`, `table1`, field1, table1, `table1`.`field1`, `table1`.field1, table1.`field1` or table1.field1 * * @return qualified name with quote characters */ public String getQualifiedName() { String column = identifier.getValueWithQuoteCharacters(); if (null != nestedObjectAttributes && !nestedObjectAttributes.isEmpty()) { column = String.join(".", column, nestedObjectAttributes.stream().map(IdentifierValue::getValueWithQuoteCharacters).collect(Collectors.joining("."))); } return null == owner ? column : String.join(".", owner.getIdentifier().getValueWithQuoteCharacters(), column); } /** * Get expression. * * @return expression */ public String getExpression() { String column = identifier.getValue(); if (null != nestedObjectAttributes && !nestedObjectAttributes.isEmpty()) { column = String.join(".", column, nestedObjectAttributes.stream().map(IdentifierValue::getValue).collect(Collectors.joining("."))); } return null == owner ? column : String.join(".", owner.getIdentifier().getValue(), column); } @Override public Optional<OwnerSegment> getOwner() { return Optional.ofNullable(owner); } @Override public String getText() { return getExpression(); } /** * Get left parentheses. * * @return left parentheses */ public Optional<ParenthesesSegment> getLeftParentheses() { return Optional.ofNullable(leftParentheses); } /** * Get right parentheses. * * @return right parentheses */ public Optional<ParenthesesSegment> getRightParentheses() { return Optional.ofNullable(rightParentheses); } } ```
```html --- layout: default --- <a href="/docs"><span aria-hidden="true"></span> Table of contents </a> <article> <header> <h1 class="post-title">{{ title }}</h1> </header> <!-- <time datetime="{{ page.date | htmlDateString }}" class="post-meta"> {{ page.date | date: "%B %d, %Y" }}</time> --> <div class="post-content">{{ content | safe }}</div> </article> <hr /> <p> <a href="/docs"><span aria-hidden="true"></span> Table of contents</a> </p> ```
Reema Sen (born 29 October 1981) is a former Indian actress and model who primarily appeared in Tamil, Telugu, and Hindi films. Early life and education Sen was born in Kolkata on 29 October 1981. She completed high school from St. Thomas Girls School in Kidderpore, Kolkata, after which her family moved to Mumbai. Personal life Reema Sen married businessman Shiv Karan Singh in 2012. She gave birth to their son, Rudraveer, on 22 February 2013. Career Film and modelling career In Mumbai, she began her modelling career, appearing in a number of advertising campaigns. She then moved to films and made her acting debut with Telugu film Chitram, in which she acted opposite Uday Kiran, whom she later paired with in Manasantha Nuvve. She also appeared in the Tamil film Minnale alongside Madhavan, which was very successful. Her first Hindi film Hum Ho Gaye Aapke flopped, and she decided to continue working in Tamil cinema. Her appearance in the Tamil film Rendu, again alongside Madhavan, was successful. Audience found her expressions in the film Thimiru cute. Her negative role in Aayirathil Oruvan and Vallavan was highly praised by viewers and critics. She ended her film career in 2012 after she got married. Her last Bollywood film was Gangs of Wasseypur alongside Manoj Bajpayee, Nawazuddin Siddiqui and Richa Chadda. Music video appearance In 1998, she appeared in the video of the song "Chandni Raatein" sung by Shamsa Kanwal. Public image In April 2006, a Madurai court issued non-bailable warrants against Sen and Shilpa Shetty for "posing in an obscene manner" in photographs published by the Tamil newspaper Dinakaran, owned by Sun Group. The report stated that the two actresses had failed to comply with earlier summons for the same reason, hence the issuance of the warrants. The petitioner submitted that the paper had published "very sexy blow-ups and medium blow-ups" in its December 2005 and January 2006 issues, and which allegedly violated the Indecent Representation of Women (Prohibition) Act 1986, Young Persons (Harmful Publications) Act 1956, and the Indian Penal Code Section 292 (Sale of Obscene Books). The petitioner further demanded that the images should be confiscated under the terms of the Press and Registration of Book Act 1867. In January 2007, outgoing Chief Justice Y. K. Sabharwal confirmed that Sen had written to him in order to enunciate guidelines against frivolous lawsuits against artists, but declined her plea on the grounds that she should have filed a formal petition instead of writing a letter. Filmography See also List of Indian film actresses References External links 1981 births Living people Indian film actresses Actresses in Tamil cinema Actresses in Bengali cinema Actresses from Kolkata Actresses in Hindi cinema Actresses in Telugu cinema Actresses in Kannada cinema 21st-century Indian actresses Filmfare Awards South winners Female models from Kolkata
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\Dialogflow; class GoogleCloudDialogflowCxV3beta1ConversationTurn extends \Google\Model { protected $userInputType = GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput::class; protected $userInputDataType = ''; protected $virtualAgentOutputType = your_sha256_hash::class; protected $virtualAgentOutputDataType = ''; /** * @param GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput */ public function setUserInput(GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput $userInput) { $this->userInput = $userInput; } /** * @return GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput */ public function getUserInput() { return $this->userInput; } /** * @param your_sha256_hash */ public function setVirtualAgentOutput(your_sha256_hash $virtualAgentOutput) { $this->virtualAgentOutput = $virtualAgentOutput; } /** * @return your_sha256_hash */ public function getVirtualAgentOutput() { return $this->virtualAgentOutput; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudDialogflowCxV3beta1ConversationTurn::class, your_sha256_hashtionTurn'); ```
Joker was a Slovenian monthly magazine based in Ljubljana. Started as a computer gaming magazine, it has expanded into reviewing books, movies, educational articles of a general nature and much more. Known for having an interesting writing style which also includes archaic and neologistic Slovene words. History Joker was founded in May 1992 under the wing of Moj mikro. The first edition was duotone and because of poor sales it was cancelled. In September 1993 it was revived as a half-sized addition to Moj Mikro. In January 1994 it had grown into an independent magazine of full size format. A compact disc was added in December 1995 and a website was launched in March 1996. In December 2000 Joker became the first Slovenian magazine and one of the first in the world to include a DVD with every copy. From 2015 Joker had a digital edition for iOS and Android. It also had a website with an archive containing much of the content from the magazine and one of the largest Slovenian online message boards called mn3njalnik. Gnojišče is a sub forum on this board and is the Slovenian equivalent of /b/. The magazine was closed in 2017. See also List of magazines in Slovenia External links 1992 establishments in Slovenia 2017 disestablishments in Slovenia Defunct magazines published in Slovenia Magazines established in 1992 Magazines disestablished in 2017 Mass media in Ljubljana Monthly magazines Slovene-language magazines Video game magazines
```javascript // chai@4.3.7 // // // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. // !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).chai=e()}}((function(){return function e(t,n,o){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[a]={exports:{}};t[a][0].call(f.exports,(function(e){return r(t[a][1][e]||e)}),f,f.exports,e,t,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r}({1:[function(e,t,n){t.exports=e("./lib/chai")},{"./lib/chai":2}],2:[function(e,t,n){ /*! * chai */ var o=[]; /*! * Chai version */n.version="4.3.3", /*! * Assertion Error */ n.AssertionError=e("assertion-error"); /*! * Utils for plugins (not exported) */ var r=e("./chai/utils");n.use=function(e){return~o.indexOf(e)||(e(n,r),o.push(e)),n}, /*! * Utility Functions */ n.util=r; /*! * Configuration */ var i=e("./chai/config");n.config=i; /*! * Primary `Assertion` prototype */ var a=e("./chai/assertion");n.use(a); /*! * Core Assertions */ var s=e("./chai/core/assertions");n.use(s); /*! * Expect interface */ var c=e("./chai/interface/expect");n.use(c); /*! * Should interface */ var u=e("./chai/interface/should");n.use(u); /*! * Assert interface */ var f=e("./chai/interface/assert");n.use(f)},{"./chai/assertion":3,"./chai/config":4,"./chai/core/assertions":5,"./chai/interface/assert":6,"./chai/interface/expect":7,"./chai/interface/should":8,"./chai/utils":22,"assertion-error":33}],3:[function(e,t,n){ /*! * chai * path_to_url */ var o=e("./config");t.exports=function(e,t){ /*! * Module dependencies. */ var n=e.AssertionError,r=t.flag; /*! * Module export. */ /*! * Assertion Constructor * * Creates object for chaining. * * `Assertion` objects contain metadata in the form of flags. Three flags can * be assigned during instantiation by passing arguments to this constructor: * * - `object`: This flag contains the target of the assertion. For example, in * the assertion `expect(numKittens).to.equal(7);`, the `object` flag will * contain `numKittens` so that the `equal` assertion can reference it when * needed. * * - `message`: This flag contains an optional custom error message to be * prepended to the error message that's generated by the assertion when it * fails. * * - `ssfi`: This flag stands for "start stack function indicator". It * contains a function reference that serves as the starting point for * removing frames from the stack trace of the error that's created by the * assertion when it fails. The goal is to provide a cleaner stack trace to * end users by removing Chai's internal functions. Note that it only works * in environments that support `Error.captureStackTrace`, and only when * `Chai.config.includeStack` hasn't been set to `false`. * * - `lockSsfi`: This flag controls whether or not the given `ssfi` flag * should retain its current value, even as assertions are chained off of * this object. This is usually set to `true` when creating a new assertion * from within another assertion. It's also temporarily set to `true` before * an overwritten assertion gets called by the overwriting assertion. * * @param {Mixed} obj target of the assertion * @param {String} msg (optional) custom error message * @param {Function} ssfi (optional) starting point for removing stack frames * @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked * @api private */ function i(e,n,o,a){return r(this,"ssfi",o||i),r(this,"lockSsfi",a),r(this,"object",e),r(this,"message",n),t.proxify(this)}e.Assertion=i,Object.defineProperty(i,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),o.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),o.includeStack=e}}),Object.defineProperty(i,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),o.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),o.showDiff=e}}),i.addProperty=function(e,n){t.addProperty(this.prototype,e,n)},i.addMethod=function(e,n){t.addMethod(this.prototype,e,n)},i.addChainableMethod=function(e,n,o){t.addChainableMethod(this.prototype,e,n,o)},i.overwriteProperty=function(e,n){t.overwriteProperty(this.prototype,e,n)},i.overwriteMethod=function(e,n){t.overwriteMethod(this.prototype,e,n)},i.overwriteChainableMethod=function(e,n,o){t.overwriteChainableMethod(this.prototype,e,n,o)},i.prototype.assert=function(e,i,a,s,c,u){var f=t.test(this,arguments);if(!1!==u&&(u=!0),void 0===s&&void 0===c&&(u=!1),!0!==o.showDiff&&(u=!1),!f){i=t.getMessage(this,arguments);var l=t.getActual(this,arguments),h={actual:l,expected:s,showDiff:u},p=t.getOperator(this,arguments);throw p&&(h.operator=p),new n(i,h,o.includeStack?this.assert:r(this,"ssfi"))}}, /*! * ### ._obj * * Quick reference to stored `actual` value for plugin developers. * * @api private */ Object.defineProperty(i.prototype,"_obj",{get:function(){return r(this,"object")},set:function(e){r(this,"object",e)}})}},{"./config":4}],4:[function(e,t,n){t.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"]}},{}],5:[function(e,t,n){ /*! * chai * path_to_url */ t.exports=function(e,t){var n=e.Assertion,o=e.AssertionError,r=t.flag;function i(e,n){n&&r(this,"message",n),e=e.toLowerCase();var o=r(this,"object"),i=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(o).toLowerCase(),"expected #{this} to be "+i+e,"expected #{this} not to be "+i+e)}function a(e,n){return t.isNaN(e)&&t.isNaN(n)||e===n}function s(){r(this,"contains",!0)}function c(e,i){i&&r(this,"message",i);var s=r(this,"object"),c=t.type(s).toLowerCase(),u=r(this,"message"),f=r(this,"negate"),l=r(this,"ssfi"),h=r(this,"deep"),p=h?"deep ":"";u=u?u+": ":"";var d=!1;switch(c){case"string":d=-1!==s.indexOf(e);break;case"weakset":if(h)throw new o(u+"unable to use .deep.include with WeakSet",void 0,l);d=s.has(e);break;case"map":var y=h?t.eql:a;s.forEach((function(t){d=d||y(t,e)}));break;case"set":h?s.forEach((function(n){d=d||t.eql(n,e)})):d=s.has(e);break;case"array":d=h?s.some((function(n){return t.eql(n,e)})):-1!==s.indexOf(e);break;default:if(e!==Object(e))throw new o(u+"the given combination of arguments ("+c+" and "+t.type(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+t.type(e).toLowerCase(),void 0,l);var g=Object.keys(e),b=null,m=0;if(g.forEach((function(i){var a=new n(s);if(t.transferFlags(this,a,!0),r(a,"lockSsfi",!0),f&&1!==g.length)try{a.property(i,e[i])}catch(e){if(!t.checkError.compatibleConstructor(e,o))throw e;null===b&&(b=e),m++}else a.property(i,e[i])}),this),f&&g.length>1&&m===g.length)throw b;return}this.assert(d,"expected #{this} to "+p+"include "+t.inspect(e),"expected #{this} to not "+p+"include "+t.inspect(e))}function u(){var e=r(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")}function f(){var e=r(this,"object"),n=t.type(e);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function l(e,t){t&&r(this,"message",t);var n=r(this,"object");if(r(this,"deep")){var o=r(this,"lockSsfi");r(this,"lockSsfi",!0),this.eql(e),r(this,"lockSsfi",o)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function h(e,n){n&&r(this,"message",n),this.assert(t.eql(e,r(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function p(e,i){i&&r(this,"message",i);var a,s=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",l=r(this,"ssfi"),h=t.type(s).toLowerCase(),p=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==h&&"set"!==h&&new n(s,u,l,!0).to.have.property("length"),c||"date"!==h||"date"===p)if("number"===p||!c&&"number"!==h)if(c||"date"===h||"number"===h)d=!1;else{a=f+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else a=f+"the argument to above must be a number";else a=f+"the argument to above must be a date";if(d)throw new o(a,void 0,l);if(c){var y,g="length";"map"===h||"set"===h?(g="size",y=s.size):y=s.length,this.assert(y>e,"expected #{this} to have a "+g+" above #{exp} but got #{act}","expected #{this} to not have a "+g+" above #{exp}",e,y)}else this.assert(s>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function d(e,i){i&&r(this,"message",i);var a,s=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",l=r(this,"ssfi"),h=t.type(s).toLowerCase(),p=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==h&&"set"!==h&&new n(s,u,l,!0).to.have.property("length"),c||"date"!==h||"date"===p)if("number"===p||!c&&"number"!==h)if(c||"date"===h||"number"===h)d=!1;else{a=f+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else a=f+"the argument to least must be a number";else a=f+"the argument to least must be a date";if(d)throw new o(a,void 0,l);if(c){var y,g="length";"map"===h||"set"===h?(g="size",y=s.size):y=s.length,this.assert(y>=e,"expected #{this} to have a "+g+" at least #{exp} but got #{act}","expected #{this} to have a "+g+" below #{exp}",e,y)}else this.assert(s>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function y(e,i){i&&r(this,"message",i);var a,s=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",l=r(this,"ssfi"),h=t.type(s).toLowerCase(),p=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==h&&"set"!==h&&new n(s,u,l,!0).to.have.property("length"),c||"date"!==h||"date"===p)if("number"===p||!c&&"number"!==h)if(c||"date"===h||"number"===h)d=!1;else{a=f+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else a=f+"the argument to below must be a number";else a=f+"the argument to below must be a date";if(d)throw new o(a,void 0,l);if(c){var y,g="length";"map"===h||"set"===h?(g="size",y=s.size):y=s.length,this.assert(y<e,"expected #{this} to have a "+g+" below #{exp} but got #{act}","expected #{this} to not have a "+g+" below #{exp}",e,y)}else this.assert(s<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function g(e,i){i&&r(this,"message",i);var a,s=r(this,"object"),c=r(this,"doLength"),u=r(this,"message"),f=u?u+": ":"",l=r(this,"ssfi"),h=t.type(s).toLowerCase(),p=t.type(e).toLowerCase(),d=!0;if(c&&"map"!==h&&"set"!==h&&new n(s,u,l,!0).to.have.property("length"),c||"date"!==h||"date"===p)if("number"===p||!c&&"number"!==h)if(c||"date"===h||"number"===h)d=!1;else{a=f+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else a=f+"the argument to most must be a number";else a=f+"the argument to most must be a date";if(d)throw new o(a,void 0,l);if(c){var y,g="length";"map"===h||"set"===h?(g="size",y=s.size):y=s.length,this.assert(y<=e,"expected #{this} to have a "+g+" at most #{exp} but got #{act}","expected #{this} to have a "+g+" above #{exp}",e,y)}else this.assert(s<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function b(e,n){n&&r(this,"message",n);var i=r(this,"object"),a=r(this,"ssfi"),s=r(this,"message");try{var c=i instanceof e}catch(n){if(n instanceof TypeError)throw new o((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+t.type(e)+" was given.",void 0,a);throw n}var u=t.getName(e);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u)}function m(e,n,i){i&&r(this,"message",i);var a=r(this,"nested"),s=r(this,"own"),c=r(this,"message"),u=r(this,"object"),f=r(this,"ssfi"),l=typeof e;if(c=c?c+": ":"",a){if("string"!==l)throw new o(c+"the argument to property must be a string when using nested syntax",void 0,f)}else if("string"!==l&&"number"!==l&&"symbol"!==l)throw new o(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new o(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new o(c+"Target cannot be null or undefined.",void 0,f);var h,p=r(this,"deep"),d=r(this,"negate"),y=a?t.getPathInfo(u,e):null,g=a?y.value:u[e],b="";p&&(b+="deep "),s&&(b+="own "),a&&(b+="nested "),b+="property ",h=s?Object.prototype.hasOwnProperty.call(u,e):a?y.exists:t.hasProperty(u,e),d&&1!==arguments.length||this.assert(h,"expected #{this} to have "+b+t.inspect(e),"expected #{this} to not have "+b+t.inspect(e)),arguments.length>1&&this.assert(h&&(p?t.eql(n,g):n===g),"expected #{this} to have "+b+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+b+t.inspect(e)+" of #{act}",n,g),r(this,"object",g)}function w(e,t,n){r(this,"own",!0),m.apply(this,arguments)}function v(e,n,o){"string"==typeof n&&(o=n,n=null),o&&r(this,"message",o);var i=r(this,"object"),a=Object.getOwnPropertyDescriptor(Object(i),e);a&&n?this.assert(t.eql(n,a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to match "+t.inspect(n)+", got "+t.inspect(a),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to not match "+t.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+t.inspect(e),"expected #{this} to not have an own property descriptor for "+t.inspect(e)),r(this,"object",a)}function x(){r(this,"doLength",!0)}function O(e,o){o&&r(this,"message",o);var i,a=r(this,"object"),s=t.type(a).toLowerCase(),c=r(this,"message"),u=r(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",i=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),i=a.length}this.assert(i==e,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",e,i)}function j(e,t){t&&r(this,"message",t);var n=r(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function S(e){var n,i,a=r(this,"object"),s=t.type(a),c=t.type(e),u=r(this,"ssfi"),f=r(this,"deep"),l="",h=!0,p=r(this,"message"),d=(p=p?p+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)l=f?"deeply ":"",i=[],a.forEach((function(e,t){i.push(t)})),"Array"!==c&&(e=Array.prototype.slice.call(arguments));else{switch(i=t.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new o(d,void 0,u);break;case"Object":if(arguments.length>1)throw new o(d,void 0,u);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return"symbol"==typeof e?e:String(e)}))}if(!e.length)throw new o(p+"keys required",void 0,u);var y=e.length,g=r(this,"any"),b=r(this,"all"),m=e;if(g||b||(b=!0),g&&(h=m.some((function(e){return i.some((function(n){return f?t.eql(e,n):e===n}))}))),b&&(h=m.every((function(e){return i.some((function(n){return f?t.eql(e,n):e===n}))})),r(this,"contains")||(h=h&&e.length==i.length)),y>1){var w=(e=e.map((function(e){return t.inspect(e)}))).pop();b&&(n=e.join(", ")+", and "+w),g&&(n=e.join(", ")+", or "+w)}else n=t.inspect(e[0]);n=(y>1?"keys ":"key ")+n,n=(r(this,"contains")?"contain ":"have ")+n,this.assert(h,"expected #{this} to "+l+n,"expected #{this} to not "+l+n,m.slice(0).sort(t.compareByInspect),i.sort(t.compareByInspect),!0)}function M(e,o,i){i&&r(this,"message",i);var a,s=r(this,"object"),c=r(this,"ssfi"),u=r(this,"message"),f=r(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(e instanceof RegExp||"string"==typeof e)&&(o=e,e=null);try{s()}catch(e){a=e}var l=void 0===e&&void 0===o,h=Boolean(e&&o),p=!1,d=!1;if(l||!l&&!f){var y="an error";e instanceof Error?y="#{exp}":e&&(y=t.checkError.getConstructorName(e)),this.assert(a,"expected #{this} to throw "+y,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&t.checkError.getConstructorName(a))}if(e&&a){if(e instanceof Error)t.checkError.compatibleInstance(a,e)===f&&(h&&f?p=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),e.toString(),a.toString()));t.checkError.compatibleConstructor(a,e)===f&&(h&&f?p=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)))}if(a&&null!=o){var g="including";o instanceof RegExp&&(g="matching"),t.checkError.compatibleMessage(a,o)===f&&(h&&f?d=!0:this.assert(f,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",o,t.checkError.getMessage(a)))}p&&d&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),a instanceof Error?a.toString():a&&t.checkError.getConstructorName(a)),r(this,"object",a)}function P(e,n){n&&r(this,"message",n);var o=r(this,"object"),i=r(this,"itself"),a="function"!=typeof o||i?o[e]:o.prototype[e];this.assert("function"==typeof a,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function N(e,n){n&&r(this,"message",n);var o=e(r(this,"object"));this.assert(o,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!r(this,"negate"),o)}function k(e,t,i){i&&r(this,"message",i);var a=r(this,"object"),s=r(this,"message"),c=r(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new o((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===t?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function E(e,t,o){o&&r(this,"message",o);var i,a=r(this,"object"),s=r(this,"message"),c=r(this,"ssfi");new n(a,s,c,!0).is.a("function"),t?(new n(e,s,c,!0).to.have.property(t),i=e[t]):(new n(e,s,c,!0).is.a("function"),i=e()),a();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","change"),r(this,"realDelta",u!==i),this.assert(i!==u,"expected "+f+" to change","expected "+f+" to not change")}function A(e,t,o){o&&r(this,"message",o);var i,a=r(this,"object"),s=r(this,"message"),c=r(this,"ssfi");new n(a,s,c,!0).is.a("function"),t?(new n(e,s,c,!0).to.have.property(t),i=e[t]):(new n(e,s,c,!0).is.a("function"),i=e()),new n(i,s,c,!0).is.a("number"),a();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","increase"),r(this,"realDelta",u-i),this.assert(u-i>0,"expected "+f+" to increase","expected "+f+" to not increase")}function D(e,t,o){o&&r(this,"message",o);var i,a=r(this,"object"),s=r(this,"message"),c=r(this,"ssfi");new n(a,s,c,!0).is.a("function"),t?(new n(e,s,c,!0).to.have.property(t),i=e[t]):(new n(e,s,c,!0).is.a("function"),i=e()),new n(i,s,c,!0).is.a("number"),a();var u=null==t?e():e[t],f=null==t?i:"."+t;r(this,"deltaMsgObj",f),r(this,"initialDeltaValue",i),r(this,"finalDeltaValue",u),r(this,"deltaBehavior","decrease"),r(this,"realDelta",i-u),this.assert(u-i<0,"expected "+f+" to decrease","expected "+f+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(e){n.addProperty(e)})),n.addProperty("not",(function(){r(this,"negate",!0)})),n.addProperty("deep",(function(){r(this,"deep",!0)})),n.addProperty("nested",(function(){r(this,"nested",!0)})),n.addProperty("own",(function(){r(this,"own",!0)})),n.addProperty("ordered",(function(){r(this,"ordered",!0)})),n.addProperty("any",(function(){r(this,"any",!0),r(this,"all",!1)})),n.addProperty("all",(function(){r(this,"all",!0),r(this,"any",!1)})),n.addChainableMethod("an",i),n.addChainableMethod("a",i),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",(function(){this.assert(r(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===r(this,"object"),"expected #{this} to be true","expected #{this} to be false",!r(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===r(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!r(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===r(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===r(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(t.isNaN(r(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",(function(){var e,n=r(this,"object"),i=r(this,"ssfi"),a=r(this,"message");switch(a=a?a+": ":"",t.type(n).toLowerCase()){case"array":case"string":e=n.length;break;case"map":case"set":e=n.size;break;case"weakmap":case"weakset":throw new o(a+".empty was passed a weak collection",void 0,i);case"function":var s=a+".empty was passed a function "+t.getName(n);throw new o(s.trim(),void 0,i);default:if(n!==Object(n))throw new o(a+".empty was passed non-string primitive "+t.inspect(n),void 0,i);e=Object.keys(n).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",l),n.addMethod("equals",l),n.addMethod("eq",l),n.addMethod("eql",h),n.addMethod("eqls",h),n.addMethod("above",p),n.addMethod("gt",p),n.addMethod("greaterThan",p),n.addMethod("least",d),n.addMethod("gte",d),n.addMethod("greaterThanOrEqual",d),n.addMethod("below",y),n.addMethod("lt",y),n.addMethod("lessThan",y),n.addMethod("most",g),n.addMethod("lte",g),n.addMethod("lessThanOrEqual",g),n.addMethod("within",(function(e,i,a){a&&r(this,"message",a);var s,c=r(this,"object"),u=r(this,"doLength"),f=r(this,"message"),l=f?f+": ":"",h=r(this,"ssfi"),p=t.type(c).toLowerCase(),d=t.type(e).toLowerCase(),y=t.type(i).toLowerCase(),g=!0,b="date"===d&&"date"===y?e.toISOString()+".."+i.toISOString():e+".."+i;if(u&&"map"!==p&&"set"!==p&&new n(c,f,h,!0).to.have.property("length"),u||"date"!==p||"date"===d&&"date"===y)if("number"===d&&"number"===y||!u&&"number"!==p)if(u||"date"===p||"number"===p)g=!1;else{s=l+"expected "+("string"===p?"'"+c+"'":c)+" to be a number or a date"}else s=l+"the arguments to within must be numbers";else s=l+"the arguments to within must be dates";if(g)throw new o(s,void 0,h);if(u){var m,w="length";"map"===p||"set"===p?(w="size",m=c.size):m=c.length,this.assert(m>=e&&m<=i,"expected #{this} to have a "+w+" within "+b,"expected #{this} to not have a "+w+" within "+b)}else this.assert(c>=e&&c<=i,"expected #{this} to be within "+b,"expected #{this} to not be within "+b)})),n.addMethod("instanceof",b),n.addMethod("instanceOf",b),n.addMethod("property",m),n.addMethod("ownProperty",w),n.addMethod("haveOwnProperty",w),n.addMethod("ownPropertyDescriptor",v),n.addMethod("haveOwnPropertyDescriptor",v),n.addChainableMethod("length",O,x),n.addChainableMethod("lengthOf",O,x),n.addMethod("match",j),n.addMethod("matches",j),n.addMethod("string",(function(e,o){o&&r(this,"message",o);var i=r(this,"object"),a=r(this,"message"),s=r(this,"ssfi");new n(i,a,s,!0).is.a("string"),this.assert(~i.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))})),n.addMethod("keys",S),n.addMethod("key",S),n.addMethod("throw",M),n.addMethod("throws",M),n.addMethod("Throw",M),n.addMethod("respondTo",P),n.addMethod("respondsTo",P),n.addProperty("itself",(function(){r(this,"itself",!0)})),n.addMethod("satisfy",N),n.addMethod("satisfies",N),n.addMethod("closeTo",k),n.addMethod("approximately",k),n.addMethod("members",(function(e,o){o&&r(this,"message",o);var i=r(this,"object"),a=r(this,"message"),s=r(this,"ssfi");new n(i,a,s,!0).to.be.an("array"),new n(e,a,s,!0).to.be.an("array");var c,u,f,l=r(this,"contains"),h=r(this,"ordered");l?(u="expected #{this} to be "+(c=h?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=h?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var p=r(this,"deep")?t.eql:void 0;this.assert(function(e,t,n,o,r){if(!o){if(e.length!==t.length)return!1;t=t.slice()}return e.every((function(e,i){if(r)return n?n(e,t[i]):e===t[i];if(!n){var a=t.indexOf(e);return-1!==a&&(o||t.splice(a,1),!0)}return t.some((function(r,i){return!!n(e,r)&&(o||t.splice(i,1),!0)}))}))}(e,i,p,l,h),u,f,e,i,!0)})),n.addMethod("oneOf",(function(e,o){o&&r(this,"message",o);var i=r(this,"object"),a=r(this,"message"),s=r(this,"ssfi"),c=r(this,"contains"),u=r(this,"deep");new n(e,a,s,!0).to.be.an("array"),c?this.assert(e.some((function(e){return i.indexOf(e)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,i):u?this.assert(e.some((function(e){return t.eql(i,e)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,i):this.assert(e.indexOf(i)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,i)})),n.addMethod("change",E),n.addMethod("changes",E),n.addMethod("increase",A),n.addMethod("increases",A),n.addMethod("decrease",D),n.addMethod("decreases",D),n.addMethod("by",(function(e,t){t&&r(this,"message",t);var n,o=r(this,"deltaMsgObj"),i=r(this,"initialDeltaValue"),a=r(this,"finalDeltaValue"),s=r(this,"deltaBehavior"),c=r(this,"realDelta");n="change"===s?Math.abs(a-i)===Math.abs(e):c===Math.abs(e),this.assert(n,"expected "+o+" to "+s+" by "+e,"expected "+o+" to not "+s+" by "+e)})),n.addProperty("extensible",(function(){var e=r(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var e=r(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var e=r(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(e){var t=r(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))}},{}],6:[function(e,t,n){ /*! * chai */ t.exports=function(e,t){ /*! * Chai dependencies. */ var n=e.Assertion,o=t.flag,r=e.assert=function(t,o){new n(null,null,e.assert,!0).assert(t,o,"[ negation message unavailable ]")}; /*! * Module export. */r.fail=function(t,n,o,i){throw arguments.length<2&&(o=t,t=void 0),o=o||"assert.fail()",new e.AssertionError(o,{actual:t,expected:n,operator:i},r.fail)},r.isOk=function(e,t){new n(e,t,r.isOk,!0).is.ok},r.isNotOk=function(e,t){new n(e,t,r.isNotOk,!0).is.not.ok},r.equal=function(e,t,i){var a=new n(e,i,r.equal,!0);a.assert(t==o(a,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},r.notEqual=function(e,t,i){var a=new n(e,i,r.notEqual,!0);a.assert(t!=o(a,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},r.strictEqual=function(e,t,o){new n(e,o,r.strictEqual,!0).to.equal(t)},r.notStrictEqual=function(e,t,o){new n(e,o,r.notStrictEqual,!0).to.not.equal(t)},r.deepEqual=r.deepStrictEqual=function(e,t,o){new n(e,o,r.deepEqual,!0).to.eql(t)},r.notDeepEqual=function(e,t,o){new n(e,o,r.notDeepEqual,!0).to.not.eql(t)},r.isAbove=function(e,t,o){new n(e,o,r.isAbove,!0).to.be.above(t)},r.isAtLeast=function(e,t,o){new n(e,o,r.isAtLeast,!0).to.be.least(t)},r.isBelow=function(e,t,o){new n(e,o,r.isBelow,!0).to.be.below(t)},r.isAtMost=function(e,t,o){new n(e,o,r.isAtMost,!0).to.be.most(t)},r.isTrue=function(e,t){new n(e,t,r.isTrue,!0).is.true},r.isNotTrue=function(e,t){new n(e,t,r.isNotTrue,!0).to.not.equal(!0)},r.isFalse=function(e,t){new n(e,t,r.isFalse,!0).is.false},r.isNotFalse=function(e,t){new n(e,t,r.isNotFalse,!0).to.not.equal(!1)},r.isNull=function(e,t){new n(e,t,r.isNull,!0).to.equal(null)},r.isNotNull=function(e,t){new n(e,t,r.isNotNull,!0).to.not.equal(null)},r.isNaN=function(e,t){new n(e,t,r.isNaN,!0).to.be.NaN},r.isNotNaN=function(e,t){new n(e,t,r.isNotNaN,!0).not.to.be.NaN},r.exists=function(e,t){new n(e,t,r.exists,!0).to.exist},r.notExists=function(e,t){new n(e,t,r.notExists,!0).to.not.exist},r.isUndefined=function(e,t){new n(e,t,r.isUndefined,!0).to.equal(void 0)},r.isDefined=function(e,t){new n(e,t,r.isDefined,!0).to.not.equal(void 0)},r.isFunction=function(e,t){new n(e,t,r.isFunction,!0).to.be.a("function")},r.isNotFunction=function(e,t){new n(e,t,r.isNotFunction,!0).to.not.be.a("function")},r.isObject=function(e,t){new n(e,t,r.isObject,!0).to.be.a("object")},r.isNotObject=function(e,t){new n(e,t,r.isNotObject,!0).to.not.be.a("object")},r.isArray=function(e,t){new n(e,t,r.isArray,!0).to.be.an("array")},r.isNotArray=function(e,t){new n(e,t,r.isNotArray,!0).to.not.be.an("array")},r.isString=function(e,t){new n(e,t,r.isString,!0).to.be.a("string")},r.isNotString=function(e,t){new n(e,t,r.isNotString,!0).to.not.be.a("string")},r.isNumber=function(e,t){new n(e,t,r.isNumber,!0).to.be.a("number")},r.isNotNumber=function(e,t){new n(e,t,r.isNotNumber,!0).to.not.be.a("number")},r.isFinite=function(e,t){new n(e,t,r.isFinite,!0).to.be.finite},r.isBoolean=function(e,t){new n(e,t,r.isBoolean,!0).to.be.a("boolean")},r.isNotBoolean=function(e,t){new n(e,t,r.isNotBoolean,!0).to.not.be.a("boolean")},r.typeOf=function(e,t,o){new n(e,o,r.typeOf,!0).to.be.a(t)},r.notTypeOf=function(e,t,o){new n(e,o,r.notTypeOf,!0).to.not.be.a(t)},r.instanceOf=function(e,t,o){new n(e,o,r.instanceOf,!0).to.be.instanceOf(t)},r.notInstanceOf=function(e,t,o){new n(e,o,r.notInstanceOf,!0).to.not.be.instanceOf(t)},r.include=function(e,t,o){new n(e,o,r.include,!0).include(t)},r.notInclude=function(e,t,o){new n(e,o,r.notInclude,!0).not.include(t)},r.deepInclude=function(e,t,o){new n(e,o,r.deepInclude,!0).deep.include(t)},r.notDeepInclude=function(e,t,o){new n(e,o,r.notDeepInclude,!0).not.deep.include(t)},r.nestedInclude=function(e,t,o){new n(e,o,r.nestedInclude,!0).nested.include(t)},r.notNestedInclude=function(e,t,o){new n(e,o,r.notNestedInclude,!0).not.nested.include(t)},r.deepNestedInclude=function(e,t,o){new n(e,o,r.deepNestedInclude,!0).deep.nested.include(t)},r.notDeepNestedInclude=function(e,t,o){new n(e,o,r.notDeepNestedInclude,!0).not.deep.nested.include(t)},r.ownInclude=function(e,t,o){new n(e,o,r.ownInclude,!0).own.include(t)},r.notOwnInclude=function(e,t,o){new n(e,o,r.notOwnInclude,!0).not.own.include(t)},r.deepOwnInclude=function(e,t,o){new n(e,o,r.deepOwnInclude,!0).deep.own.include(t)},r.notDeepOwnInclude=function(e,t,o){new n(e,o,r.notDeepOwnInclude,!0).not.deep.own.include(t)},r.match=function(e,t,o){new n(e,o,r.match,!0).to.match(t)},r.notMatch=function(e,t,o){new n(e,o,r.notMatch,!0).to.not.match(t)},r.property=function(e,t,o){new n(e,o,r.property,!0).to.have.property(t)},r.notProperty=function(e,t,o){new n(e,o,r.notProperty,!0).to.not.have.property(t)},r.propertyVal=function(e,t,o,i){new n(e,i,r.propertyVal,!0).to.have.property(t,o)},r.notPropertyVal=function(e,t,o,i){new n(e,i,r.notPropertyVal,!0).to.not.have.property(t,o)},r.deepPropertyVal=function(e,t,o,i){new n(e,i,r.deepPropertyVal,!0).to.have.deep.property(t,o)},r.notDeepPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepPropertyVal,!0).to.not.have.deep.property(t,o)},r.ownProperty=function(e,t,o){new n(e,o,r.ownProperty,!0).to.have.own.property(t)},r.notOwnProperty=function(e,t,o){new n(e,o,r.notOwnProperty,!0).to.not.have.own.property(t)},r.ownPropertyVal=function(e,t,o,i){new n(e,i,r.ownPropertyVal,!0).to.have.own.property(t,o)},r.notOwnPropertyVal=function(e,t,o,i){new n(e,i,r.notOwnPropertyVal,!0).to.not.have.own.property(t,o)},r.deepOwnPropertyVal=function(e,t,o,i){new n(e,i,r.deepOwnPropertyVal,!0).to.have.deep.own.property(t,o)},r.notDeepOwnPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,o)},r.nestedProperty=function(e,t,o){new n(e,o,r.nestedProperty,!0).to.have.nested.property(t)},r.notNestedProperty=function(e,t,o){new n(e,o,r.notNestedProperty,!0).to.not.have.nested.property(t)},r.nestedPropertyVal=function(e,t,o,i){new n(e,i,r.nestedPropertyVal,!0).to.have.nested.property(t,o)},r.notNestedPropertyVal=function(e,t,o,i){new n(e,i,r.notNestedPropertyVal,!0).to.not.have.nested.property(t,o)},r.deepNestedPropertyVal=function(e,t,o,i){new n(e,i,r.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,o)},r.notDeepNestedPropertyVal=function(e,t,o,i){new n(e,i,r.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,o)},r.lengthOf=function(e,t,o){new n(e,o,r.lengthOf,!0).to.have.lengthOf(t)},r.hasAnyKeys=function(e,t,o){new n(e,o,r.hasAnyKeys,!0).to.have.any.keys(t)},r.hasAllKeys=function(e,t,o){new n(e,o,r.hasAllKeys,!0).to.have.all.keys(t)},r.containsAllKeys=function(e,t,o){new n(e,o,r.containsAllKeys,!0).to.contain.all.keys(t)},r.doesNotHaveAnyKeys=function(e,t,o){new n(e,o,r.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},r.doesNotHaveAllKeys=function(e,t,o){new n(e,o,r.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},r.hasAnyDeepKeys=function(e,t,o){new n(e,o,r.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},r.hasAllDeepKeys=function(e,t,o){new n(e,o,r.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},r.containsAllDeepKeys=function(e,t,o){new n(e,o,r.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},r.doesNotHaveAnyDeepKeys=function(e,t,o){new n(e,o,r.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},r.doesNotHaveAllDeepKeys=function(e,t,o){new n(e,o,r.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},r.throws=function(e,t,i,a){("string"==typeof t||t instanceof RegExp)&&(i=t,t=null);var s=new n(e,a,r.throws,!0).to.throw(t,i);return o(s,"object")},r.doesNotThrow=function(e,t,o,i){("string"==typeof t||t instanceof RegExp)&&(o=t,t=null),new n(e,i,r.doesNotThrow,!0).to.not.throw(t,o)},r.operator=function(i,a,s,c){var u;switch(a){case"==":u=i==s;break;case"===":u=i===s;break;case">":u=i>s;break;case">=":u=i>=s;break;case"<":u=i<s;break;case"<=":u=i<=s;break;case"!=":u=i!=s;break;case"!==":u=i!==s;break;default:throw c=c?c+": ":c,new e.AssertionError(c+'Invalid operator "'+a+'"',void 0,r.operator)}var f=new n(u,c,r.operator,!0);f.assert(!0===o(f,"object"),"expected "+t.inspect(i)+" to be "+a+" "+t.inspect(s),"expected "+t.inspect(i)+" to not be "+a+" "+t.inspect(s))},r.closeTo=function(e,t,o,i){new n(e,i,r.closeTo,!0).to.be.closeTo(t,o)},r.approximately=function(e,t,o,i){new n(e,i,r.approximately,!0).to.be.approximately(t,o)},r.sameMembers=function(e,t,o){new n(e,o,r.sameMembers,!0).to.have.same.members(t)},r.notSameMembers=function(e,t,o){new n(e,o,r.notSameMembers,!0).to.not.have.same.members(t)},r.sameDeepMembers=function(e,t,o){new n(e,o,r.sameDeepMembers,!0).to.have.same.deep.members(t)},r.notSameDeepMembers=function(e,t,o){new n(e,o,r.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},r.sameOrderedMembers=function(e,t,o){new n(e,o,r.sameOrderedMembers,!0).to.have.same.ordered.members(t)},r.notSameOrderedMembers=function(e,t,o){new n(e,o,r.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},r.sameDeepOrderedMembers=function(e,t,o){new n(e,o,r.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},r.notSameDeepOrderedMembers=function(e,t,o){new n(e,o,r.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},r.includeMembers=function(e,t,o){new n(e,o,r.includeMembers,!0).to.include.members(t)},r.notIncludeMembers=function(e,t,o){new n(e,o,r.notIncludeMembers,!0).to.not.include.members(t)},r.includeDeepMembers=function(e,t,o){new n(e,o,r.includeDeepMembers,!0).to.include.deep.members(t)},r.notIncludeDeepMembers=function(e,t,o){new n(e,o,r.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},r.includeOrderedMembers=function(e,t,o){new n(e,o,r.includeOrderedMembers,!0).to.include.ordered.members(t)},r.notIncludeOrderedMembers=function(e,t,o){new n(e,o,r.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},r.includeDeepOrderedMembers=function(e,t,o){new n(e,o,r.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},r.notIncludeDeepOrderedMembers=function(e,t,o){new n(e,o,r.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},r.oneOf=function(e,t,o){new n(e,o,r.oneOf,!0).to.be.oneOf(t)},r.changes=function(e,t,o,i){3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.changes,!0).to.change(t,o)},r.changesBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.changesBy,!0).to.change(t,o).by(i)},r.doesNotChange=function(e,t,o,i){return 3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.doesNotChange,!0).to.not.change(t,o)},r.changesButNotBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.changesButNotBy,!0).to.change(t,o).but.not.by(i)},r.increases=function(e,t,o,i){return 3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.increases,!0).to.increase(t,o)},r.increasesBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.increasesBy,!0).to.increase(t,o).by(i)},r.doesNotIncrease=function(e,t,o,i){return 3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.doesNotIncrease,!0).to.not.increase(t,o)},r.increasesButNotBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.increasesButNotBy,!0).to.increase(t,o).but.not.by(i)},r.decreases=function(e,t,o,i){return 3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.decreases,!0).to.decrease(t,o)},r.decreasesBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.decreasesBy,!0).to.decrease(t,o).by(i)},r.doesNotDecrease=function(e,t,o,i){return 3===arguments.length&&"function"==typeof t&&(i=o,o=null),new n(e,i,r.doesNotDecrease,!0).to.not.decrease(t,o)},r.doesNotDecreaseBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);return new n(e,a,r.doesNotDecreaseBy,!0).to.not.decrease(t,o).by(i)},r.decreasesButNotBy=function(e,t,o,i,a){if(4===arguments.length&&"function"==typeof t){var s=i;i=o,a=s}else 3===arguments.length&&(i=o,o=null);new n(e,a,r.decreasesButNotBy,!0).to.decrease(t,o).but.not.by(i)} /*! * ### .ifError(object) * * Asserts if value is not a false value, and throws if it is a true value. * This is added to allow for chai to be a drop-in replacement for Node's * assert class. * * var err = new Error('I am a custom error'); * assert.ifError(err); // Rethrows err! * * @name ifError * @param {Object} object * @namespace Assert * @api public */,r.ifError=function(e){if(e)throw e},r.isExtensible=function(e,t){new n(e,t,r.isExtensible,!0).to.be.extensible},r.isNotExtensible=function(e,t){new n(e,t,r.isNotExtensible,!0).to.not.be.extensible},r.isSealed=function(e,t){new n(e,t,r.isSealed,!0).to.be.sealed},r.isNotSealed=function(e,t){new n(e,t,r.isNotSealed,!0).to.not.be.sealed},r.isFrozen=function(e,t){new n(e,t,r.isFrozen,!0).to.be.frozen},r.isNotFrozen=function(e,t){new n(e,t,r.isNotFrozen,!0).to.not.be.frozen},r.isEmpty=function(e,t){new n(e,t,r.isEmpty,!0).to.be.empty},r.isNotEmpty=function(e,t){new n(e,t,r.isNotEmpty,!0).to.not.be.empty}, /*! * Aliases. */ function e(t,n){return r[n]=r[t],e}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},{}],7:[function(e,t,n){ /*! * chai */ t.exports=function(e,t){e.expect=function(t,n){return new e.Assertion(t,n)},e.expect.fail=function(t,n,o,r){throw arguments.length<2&&(o=t,t=void 0),o=o||"expect.fail()",new e.AssertionError(o,{actual:t,expected:n,operator:r},e.expect.fail)}}},{}],8:[function(e,t,n){ /*! * chai */ t.exports=function(e,t){var n=e.Assertion;function o(){Object.defineProperty(Object.prototype,"should",{set:function(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})},get:function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol||"function"==typeof BigInt&&this instanceof BigInt?new n(this.valueOf(),null,e):new n(this,null,e)},configurable:!0});var t={fail:function(n,o,r,i){throw arguments.length<2&&(r=n,n=void 0),r=r||"should.fail()",new e.AssertionError(r,{actual:n,expected:o,operator:i},t.fail)},equal:function(e,t,o){new n(e,o).to.equal(t)},Throw:function(e,t,o,r){new n(e,r).to.Throw(t,o)},exist:function(e,t){new n(e,t).to.exist},not:{}};return t.not.equal=function(e,t,o){new n(e,o).to.not.equal(t)},t.not.Throw=function(e,t,o,r){new n(e,r).to.not.Throw(t,o)},t.not.exist=function(e,t){new n(e,t).to.not.exist},t.throw=t.Throw,t.not.throw=t.not.Throw,t}e.should=o,e.Should=o}},{}],9:[function(e,t,n){ /*! * Chai - addChainingMethod utility */ /*! * Module dependencies */ var o=e("./addLengthGuard"),r=e("../../chai"),i=e("./flag"),a=e("./proxify"),s=e("./transferFlags"),c="function"==typeof Object.setPrototypeOf,u=function(){},f=Object.getOwnPropertyNames(u).filter((function(e){var t=Object.getOwnPropertyDescriptor(u,e);return"object"!=typeof t||!t.configurable})),l=Function.prototype.call,h=Function.prototype.apply;t.exports=function(e,t,n,u){"function"!=typeof u&&(u=function(){});var p={method:n,chainingBehavior:u};e.__methods||(e.__methods={}),e.__methods[t]=p,Object.defineProperty(e,t,{get:function(){p.chainingBehavior.call(this);var n=function(){i(this,"lockSsfi")||i(this,"ssfi",n);var e=p.method.apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return s(this,t),t};if(o(n,t,!0),c){var u=Object.create(this);u.call=l,u.apply=h,Object.setPrototypeOf(n,u)}else{Object.getOwnPropertyNames(e).forEach((function(t){if(-1===f.indexOf(t)){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o)}}))}return s(this,n),a(n)},configurable:!0})}},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":30,"./transferFlags":32}],10:[function(e,t,n){var o=Object.getOwnPropertyDescriptor((function(){}),"length"); /*! * Chai - addLengthGuard utility */t.exports=function(e,t,n){return o.configurable?(Object.defineProperty(e,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e):e}},{}],11:[function(e,t,n){ /*! * Chai - addMethod utility */ var o=e("./addLengthGuard"),r=e("../../chai"),i=e("./flag"),a=e("./proxify"),s=e("./transferFlags");t.exports=function(e,t,n){var c=function(){i(this,"lockSsfi")||i(this,"ssfi",c);var e=n.apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return s(this,t),t};o(c,t,!1),e[t]=a(c,t)}},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":30,"./transferFlags":32}],12:[function(e,t,n){ /*! * Chai - addProperty utility */ var o=e("../../chai"),r=e("./flag"),i=e("./isProxyEnabled"),a=e("./transferFlags");t.exports=function(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:function e(){i()||r(this,"lockSsfi")||r(this,"ssfi",e);var t=n.call(this);if(void 0!==t)return t;var s=new o.Assertion;return a(this,s),s},configurable:!0})}},{"../../chai":2,"./flag":15,"./isProxyEnabled":25,"./transferFlags":32}],13:[function(e,t,n){ /*! * Chai - compareByInspect utility */ /*! * Module dependencies */ var o=e("./inspect");t.exports=function(e,t){return o(e)<o(t)?-1:1}},{"./inspect":23}],14:[function(e,t,n){ /*! * Chai - expectTypes utility */ var o=e("assertion-error"),r=e("./flag"),i=e("type-detect");t.exports=function(e,t){var n=r(e,"message"),a=r(e,"ssfi");n=n?n+": ":"",e=r(e,"object"),(t=t.map((function(e){return e.toLowerCase()}))).sort();var s=t.map((function(e,n){var o=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+o+" "+e})).join(", "),c=i(e).toLowerCase();if(!t.some((function(e){return c===e})))throw new o(n+"object tested must be "+s+", but "+c+" given",void 0,a)}},{"./flag":15,"assertion-error":33,"type-detect":39}],15:[function(e,t,n){ /*! * Chai - flag utility */ t.exports=function(e,t,n){var o=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return o[t];o[t]=n}},{}],16:[function(e,t,n){ /*! * Chai - getActual utility */ t.exports=function(e,t){return t.length>4?t[4]:e._obj}},{}],17:[function(e,t,n){ /*! * Chai - message composition utility */ /*! * Module dependencies */ var o=e("./flag"),r=e("./getActual"),i=e("./objDisplay");t.exports=function(e,t){var n=o(e,"negate"),a=o(e,"object"),s=t[3],c=r(e,t),u=n?t[2]:t[1],f=o(e,"message");return"function"==typeof u&&(u=u()),u=(u=u||"").replace(/#\{this\}/g,(function(){return i(a)})).replace(/#\{act\}/g,(function(){return i(c)})).replace(/#\{exp\}/g,(function(){return i(s)})),f?f+": "+u:u}},{"./flag":15,"./getActual":16,"./objDisplay":26}],18:[function(e,t,n){var o=e("type-detect"),r=e("./flag");t.exports=function(e,t){var n=r(e,"operator"),i=r(e,"negate"),a=t[3],s=i?t[2]:t[1];if(n)return n;if("function"==typeof s&&(s=s()),(s=s||"")&&!/\shave\s/.test(s)){var c=function(e){var t=o(e);return-1!==["Array","Object","function"].indexOf(t)}(a);return/\snot\s/.test(s)?c?"notDeepStrictEqual":"notStrictEqual":c?"deepStrictEqual":"strictEqual"}}},{"./flag":15,"type-detect":39}],19:[function(e,t,n){ /*! * Chai - getOwnEnumerableProperties utility */ /*! * Module dependencies */ var o=e("./getOwnEnumerablePropertySymbols");t.exports=function(e){return Object.keys(e).concat(o(e))}},{"./getOwnEnumerablePropertySymbols":20}],20:[function(e,t,n){ /*! * Chai - getOwnEnumerablePropertySymbols utility */ t.exports=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}},{}],21:[function(e,t,n){ /*! * Chai - getProperties utility */ t.exports=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var o=Object.getPrototypeOf(e);null!==o;)Object.getOwnPropertyNames(o).forEach(n),o=Object.getPrototypeOf(o);return t}},{}],22:[function(e,t,n){ /*! * chai */ /*! * Dependencies that are used for multiple exports are required here only once */ var o=e("pathval"); /*! * test utility */n.test=e("./test"), /*! * type utility */ n.type=e("type-detect"), /*! * expectTypes utility */ n.expectTypes=e("./expectTypes"), /*! * message utility */ n.getMessage=e("./getMessage"), /*! * actual utility */ n.getActual=e("./getActual"), /*! * Inspect util */ n.inspect=e("./inspect"), /*! * Object Display util */ n.objDisplay=e("./objDisplay"), /*! * Flag utility */ n.flag=e("./flag"), /*! * Flag transferring utility */ n.transferFlags=e("./transferFlags"), /*! * Deep equal utility */ n.eql=e("deep-eql"), /*! * Deep path info */ n.getPathInfo=o.getPathInfo, /*! * Check if a property exists */ n.hasProperty=o.hasProperty, /*! * Function name */ n.getName=e("get-func-name"), /*! * add Property */ n.addProperty=e("./addProperty"), /*! * add Method */ n.addMethod=e("./addMethod"), /*! * overwrite Property */ n.overwriteProperty=e("./overwriteProperty"), /*! * overwrite Method */ n.overwriteMethod=e("./overwriteMethod"), /*! * Add a chainable method */ n.addChainableMethod=e("./addChainableMethod"), /*! * Overwrite chainable method */ n.overwriteChainableMethod=e("./overwriteChainableMethod"), /*! * Compare by inspect method */ n.compareByInspect=e("./compareByInspect"), /*! * Get own enumerable property symbols method */ n.getOwnEnumerablePropertySymbols=e("./getOwnEnumerablePropertySymbols"), /*! * Get own enumerable properties method */ n.getOwnEnumerableProperties=e("./getOwnEnumerableProperties"), /*! * Checks error against a given set of criteria */ n.checkError=e("check-error"), /*! * Proxify util */ n.proxify=e("./proxify"), /*! * addLengthGuard util */ n.addLengthGuard=e("./addLengthGuard"), /*! * isProxyEnabled helper */ n.isProxyEnabled=e("./isProxyEnabled"), /*! * isNaN method */ n.isNaN=e("./isNaN"), /*! * getOperator method */ n.getOperator=e("./getOperator")},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":17,"./getOperator":18,"./getOwnEnumerableProperties":19,"./getOwnEnumerablePropertySymbols":20,"./inspect":23,"./isNaN":24,"./isProxyEnabled":25,"./objDisplay":26,"./overwriteChainableMethod":27,"./overwriteMethod":28,"./overwriteProperty":29,"./proxify":30,"./test":31,"./transferFlags":32,"check-error":34,"deep-eql":35,"get-func-name":36,pathval:38,"type-detect":39}],23:[function(e,t,n){e("get-func-name");var o=e("loupe"),r=e("../config");t.exports=function(e,t,n,i){var a={colors:i,depth:void 0===n?2:n,showHidden:t,truncate:r.truncateThreshold?r.truncateThreshold:1/0};return o.inspect(e,a)}},{"../config":4,"get-func-name":36,loupe:37}],24:[function(e,t,n){t.exports=Number.isNaN|| /*! * Chai - isNaN utility */ function(e){return e!=e}},{}],25:[function(e,t,n){var o=e("../config"); /*! * Chai - isProxyEnabled helper */t.exports=function(){return o.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}},{"../config":4}],26:[function(e,t,n){ /*! * Chai - flag utility */ /*! * Module dependencies */ var o=e("./inspect"),r=e("../config");t.exports=function(e){var t=o(e),n=Object.prototype.toString.call(e);if(r.truncateThreshold&&t.length>=r.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var i=Object.keys(e);return"{ Object ("+(i.length>2?i.splice(0,2).join(", ")+", ...":i.join(", "))+") }"}return t}return t}},{"../config":4,"./inspect":23}],27:[function(e,t,n){ /*! * Chai - overwriteChainableMethod utility */ var o=e("../../chai"),r=e("./transferFlags");t.exports=function(e,t,n,i){var a=e.__methods[t],s=a.chainingBehavior;a.chainingBehavior=function(){var e=i(s).call(this);if(void 0!==e)return e;var t=new o.Assertion;return r(this,t),t};var c=a.method;a.method=function(){var e=n(c).apply(this,arguments);if(void 0!==e)return e;var t=new o.Assertion;return r(this,t),t}}},{"../../chai":2,"./transferFlags":32}],28:[function(e,t,n){ /*! * Chai - overwriteMethod utility */ var o=e("./addLengthGuard"),r=e("../../chai"),i=e("./flag"),a=e("./proxify"),s=e("./transferFlags");t.exports=function(e,t,n){var c=e[t],u=function(){throw new Error(t+" is not a function")};c&&"function"==typeof c&&(u=c);var f=function(){i(this,"lockSsfi")||i(this,"ssfi",f);var e=i(this,"lockSsfi");i(this,"lockSsfi",!0);var t=n(u).apply(this,arguments);if(i(this,"lockSsfi",e),void 0!==t)return t;var o=new r.Assertion;return s(this,o),o};o(f,t,!1),e[t]=a(f,t)}},{"../../chai":2,"./addLengthGuard":10,"./flag":15,"./proxify":30,"./transferFlags":32}],29:[function(e,t,n){ /*! * Chai - overwriteProperty utility */ var o=e("../../chai"),r=e("./flag"),i=e("./isProxyEnabled"),a=e("./transferFlags");t.exports=function(e,t,n){var s=Object.getOwnPropertyDescriptor(e,t),c=function(){};s&&"function"==typeof s.get&&(c=s.get),Object.defineProperty(e,t,{get:function e(){i()||r(this,"lockSsfi")||r(this,"ssfi",e);var t=r(this,"lockSsfi");r(this,"lockSsfi",!0);var s=n(c).call(this);if(r(this,"lockSsfi",t),void 0!==s)return s;var u=new o.Assertion;return a(this,u),u},configurable:!0})}},{"../../chai":2,"./flag":15,"./isProxyEnabled":25,"./transferFlags":32}],30:[function(e,t,n){var o=e("../config"),r=e("./flag"),i=e("./getProperties"),a=e("./isProxyEnabled"),s=["__flags","__methods","_obj","assert"];t.exports=function(e,t){return a()?new Proxy(e,{get:function e(n,a){if("string"==typeof a&&-1===o.proxyExcludedKeys.indexOf(a)&&!Reflect.has(n,a)){if(t)throw Error("Invalid Chai property: "+t+"."+a+'. See docs for proper usage of "'+t+'".');var c=null,u=4;throw i(n).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&-1===s.indexOf(e)){var t=function(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;for(var o=[],r=0;r<=e.length;r++)o[r]=Array(t.length+1).fill(0),o[r][0]=r;for(var i=0;i<t.length;i++)o[0][i]=i;for(r=1;r<=e.length;r++){var a=e.charCodeAt(r-1);for(i=1;i<=t.length;i++)Math.abs(r-i)>=n?o[r][i]=n:o[r][i]=Math.min(o[r-1][i]+1,o[r][i-1]+1,o[r-1][i-1]+(a===t.charCodeAt(i-1)?0:1))}return o[e.length][t.length]}(a,e,u);t<u&&(c=e,u=t)}})),null!==c?Error("Invalid Chai property: "+a+'. Did you mean "'+c+'"?'):Error("Invalid Chai property: "+a)}return-1!==s.indexOf(a)||r(n,"lockSsfi")||r(n,"ssfi",e),Reflect.get(n,a)}}):e}},{"../config":4,"./flag":15,"./getProperties":21,"./isProxyEnabled":25}],31:[function(e,t,n){ /*! * Chai - test utility */ /*! * Module dependencies */ var o=e("./flag");t.exports=function(e,t){var n=o(e,"negate"),r=t[0];return n?!r:r}},{"./flag":15}],32:[function(e,t,n){ /*! * Chai - transferFlags utility */ t.exports=function(e,t,n){var o=e.__flags||(e.__flags=Object.create(null));for(var r in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,o)(n||"object"!==r&&"ssfi"!==r&&"lockSsfi"!==r&&"message"!=r)&&(t.__flags[r]=o[r])}},{}],33:[function(e,t,n){ /*! * assertion-error */ /*! * Return a function that will copy properties from * one object to another excluding any originally * listed. Returned function will create a new `{}`. * * @param {String} excluded properties ... * @return {Function} */ function o(){var e=[].slice.call(arguments);function t(t,n){Object.keys(n).forEach((function(o){~e.indexOf(o)||(t[o]=n[o])}))}return function(){for(var e=[].slice.call(arguments),n=0,o={};n<e.length;n++)t(o,e[n]);return o}}function r(e,t,n){var i=o("name","message","stack","constructor","toJSON")(t||{});for(var a in this.message=e||"Unspecified AssertionError",this.showDiff=!1,i)this[a]=i[a];if(n=n||r,Error.captureStackTrace)Error.captureStackTrace(this,n);else try{throw new Error}catch(e){this.stack=e.stack}} /*! * Inherit from Error.prototype */ /*! * Primary Exports */ t.exports=r,r.prototype=Object.create(Error.prototype), /*! * Statically set name */ r.prototype.name="AssertionError", /*! * Ensure correct constructor */ r.prototype.constructor=r,r.prototype.toJSON=function(e){var t=o("constructor","toJSON","stack")({name:this.name},this);return!1!==e&&this.stack&&(t.stack=this.stack),t}},{}],34:[function(e,t,n){"use strict";var o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\(\/]+)/;function r(e){var t="";if(void 0===e.name){var n=String(e).match(o);n&&(t=n[1])}else t=e.name;return t}t.exports={compatibleInstance:function(e,t){return t instanceof Error&&e===t},compatibleConstructor:function(e,t){return t instanceof Error?e.constructor===t.constructor||e instanceof t.constructor:(t.prototype instanceof Error||t===Error)&&(e.constructor===t||e instanceof t)},compatibleMessage:function(e,t){var n="string"==typeof e?e:e.message;return t instanceof RegExp?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)},getMessage:function(e){var t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t},getConstructorName:function(e){var t=e;return e instanceof Error?t=r(e.constructor):"function"==typeof e&&(t=r(e).trim()||r(new e)),t}}},{}],35:[function(e,t,n){"use strict"; /*! * deep-eql */var o=e("type-detect");function r(){this._key="chai/deep-eql__"+Math.random()+Date.now()}r.prototype={get:function(e){return e[this._key]},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}};var i="function"==typeof WeakMap?WeakMap:r; /*! * Check to see if the MemoizeMap has recorded a result of the two operands * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @returns {Boolean|null} result */function a(e,t,n){if(!n||m(e)||m(t))return null;var o=n.get(e);if(o){var r=o.get(t);if("boolean"==typeof r)return r}return null} /*! * Set the result of the equality into the MemoizeMap * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {MemoizeMap} memoizeMap * @param {Boolean} result */function s(e,t,n,o){if(n&&!m(e)&&!m(t)){var r=n.get(e);r?r.set(t,o):((r=new i).set(t,o),n.set(e,r))}} /*! * Primary Export */function c(e,t,n){if(n&&n.comparator)return f(e,t,n);var o=u(e,t);return null!==o?o:f(e,t,n)}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!m(e)&&!m(t)&&null} /*! * The main logic of the `deepEqual` function. * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {Object} [options] (optional) Additional options * @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality. * @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular references to blow the stack. * @return {Boolean} equal match */function f(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new i);var r=n&&n.comparator,f=a(e,t,n.memoize);if(null!==f)return f;var m=a(t,e,n.memoize);if(null!==m)return m;if(r){var v=r(e,t);if(!1===v||!0===v)return s(e,t,n.memoize,v),v;var x=u(e,t);if(null!==x)return x}var O=o(e);if(O!==o(t))return s(e,t,n.memoize,!1),!1;s(e,t,n.memoize,!0);var j=function(e,t,n,o){switch(n){case"String":case"Number":case"Boolean":case"Date":return c(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return b(e,t,["name","message","code"],o);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return h(e,t,o);case"RegExp": /*! * Compare two Regular Expressions for equality. * * @param {RegExp} leftHandOperand * @param {RegExp} rightHandOperand * @return {Boolean} result */ return function(e,t){return e.toString()===t.toString()} /*! * Compare two Sets/Maps for equality. Faster than other equality functions. * * @param {Set} leftHandOperand * @param {Set} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result */(e,t);case"Generator": /*! * Simple equality for generator objects such as those returned by generator functions. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result */ return function(e,t,n){return h(d(e),d(t),n)} /*! * Determine if the given object has an @@iterator function. * * @param {Object} target * @return {Boolean} `true` if the object has an @@iterator function. */(e,t,o);case"DataView":return h(new Uint8Array(e.buffer),new Uint8Array(t.buffer),o);case"ArrayBuffer":return h(new Uint8Array(e),new Uint8Array(t),o);case"Set":case"Map":return l(e,t,o);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default: /*! * Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual` * for each enumerable key in the object. * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result */ return function(e,t,n){var o=y(e),r=y(t),i=g(e),a=g(t);if(o=o.concat(i),r=r.concat(a),o.length&&o.length===r.length)return!1!==h(w(o).sort(),w(r).sort())&&b(e,t,o,n);var s=p(e),c=p(t);if(s.length&&s.length===c.length)return s.sort(),c.sort(),h(s,c,n);if(0===o.length&&0===s.length&&0===r.length&&0===c.length)return!0;return!1} /*! * Returns true if the argument is a primitive. * * This intentionally returns true for all objects that can be compared by reference, * including functions and symbols. * * @param {Mixed} value * @return {Boolean} result */(e,t,o)}}(e,t,O,n);return s(e,t,n.memoize,j),j}function l(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var o=[],r=[];return e.forEach((function(e,t){o.push([e,t])})),t.forEach((function(e,t){r.push([e,t])})),h(o.sort(),r.sort(),n)} /*! * Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers. * * @param {Iterable} leftHandOperand * @param {Iterable} rightHandOperand * @param {Object} [options] (Optional) * @return {Boolean} result */function h(e,t,n){var o=e.length;if(o!==t.length)return!1;if(0===o)return!0;for(var r=-1;++r<o;)if(!1===c(e[r],t[r],n))return!1;return!0} /*! * Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array. * This will consume the iterator - which could have side effects depending on the @@iterator implementation. * * @param {Object} target * @returns {Array} an array of entries from the @@iterator function */ function p(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return d(e[Symbol.iterator]())}catch(e){return[]}return[]} /*! * Gets all entries from a Generator. This will consume the generator - which could have side effects. * * @param {Generator} target * @returns {Array} an array of entries from the Generator. */function d(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n} /*! * Gets all own and inherited enumerable keys from a target. * * @param {Object} target * @returns {Array} an array of own and inherited enumerable keys from the target. */function y(e){var t=[];for(var n in e)t.push(n);return t}function g(e){for(var t=[],n=Object.getOwnPropertySymbols(e),o=0;o<n.length;o+=1){var r=n[o];Object.getOwnPropertyDescriptor(e,r).enumerable&&t.push(r)}return t} /*! * Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of * each key. If any value of the given key is not equal, the function will return false (early). * * @param {Mixed} leftHandOperand * @param {Mixed} rightHandOperand * @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against * @param {Object} [options] (Optional) * @return {Boolean} result */function b(e,t,n,o){var r=n.length;if(0===r)return!0;for(var i=0;i<r;i+=1)if(!1===c(e[n[i]],t[n[i]],o))return!1;return!0}function m(e){return null===e||"object"!=typeof e}function w(e){return e.map((function(e){return"symbol"==typeof e?e.toString():e}))}t.exports=c,t.exports.MemoizeMap=i},{"type-detect":39}],36:[function(e,t,n){"use strict";var o=Function.prototype.toString,r=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;t.exports=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=o.call(e).match(r);n&&(t=n[1])}else t=e.name;return t}},{}],37:[function(e,t,n){!function(e,o){"object"==typeof n&&void 0!==t?o(n):o((e="undefined"!=typeof globalThis?globalThis:e||self).loupe={})}(this,(function(t){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var i={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},a={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},s="";function c(e,t){var n=i[a[t]]||i[t];return n?"[".concat(n[0],"m").concat(String(e),"[").concat(n[1],"m"):String(e)}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;e=String(e);var o=n.length,r=e.length;return o>t&&r>o?n:r>t&&r>o?"".concat(e.slice(0,t-o)).concat(n):e}function f(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:", ";n=n||t.inspect;var r=e.length;if(0===r)return"";for(var i=t.truncate,a="",c="",u="",f=0;f<r;f+=1){var l=f+1===e.length,h=f+2===e.length;u="".concat(s,"(").concat(e.length-f,")");var p=e[f];t.truncate=i-a.length-(l?0:o.length);var d=c||n(p,t)+(l?"":o),y=a.length+d.length,g=y+u.length;if(l&&y>i&&a.length+u.length<=i)break;if(!l&&!h&&g>i)break;if(c=l?"":n(e[f+1],t)+(h?"":o),!l&&h&&g>i&&y+c.length>i)break;if(a+=d,!l&&!h&&y+c.length>=i){u="".concat(s,"(").concat(e.length-f-1,")");break}u=""}return"".concat(a).concat(u)}function l(e,t){var n=o(e,2),r=n[0],i=n[1];return t.truncate-=2,"string"==typeof r?r=function(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(r):"number"!=typeof r&&(r="[".concat(t.inspect(r,t),"]")),t.truncate-=r.length,i=t.inspect(i,t),"".concat(r,": ").concat(i)}var h=Function.prototype.toString,p=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;var d=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=h.call(e).match(p);n&&(t=n[1])}else t=e.name;return t};function y(e,t){var n=function(e){return"function"==typeof Buffer&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:d(e.constructor)}(e);t.truncate-=n.length+4;var o=Object.keys(e).slice(e.length);if(!e.length&&!o.length)return"".concat(n,"[]");for(var r="",i=0;i<e.length;i++){var a="".concat(t.stylize(u(e[i],t.truncate),"number")).concat(i===e.length-1?"":", ");if(t.truncate-=a.length,e[i]!==e.length&&t.truncate<=3){r+="".concat(s,"(").concat(e.length-e[i]+1,")");break}r+=a}var c="";return o.length&&(c=f(o.map((function(t){return[t,e[t]]})),t,l)),"".concat(n,"[ ").concat(r).concat(c?", ".concat(c):""," ]")}function g(e,t){var n=d(e);return n?t.stylize("[Function ".concat(u(n,t.truncate-11),"]"),"special"):t.stylize("[Function]","special")}function b(e,t){var n=o(e,2),r=n[0],i=n[1];return t.truncate-=4,r=t.inspect(r,t),t.truncate-=r.length,i=t.inspect(i,t),"".concat(r," => ").concat(i)}var m=Number.isNaN||function(e){return e!=e};function w(e,t){return m(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(u(e,t.truncate),"number")}function v(e,t){var n=u(e.toString(),t.truncate-1);return n!==s&&(n+="n"),t.stylize(n,"bigint")}var x=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),O={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function j(e){return O[e]||"\\u".concat("0000".concat(e.charCodeAt(0).toString(16)).slice(-4))}function S(e,t){return x.test(e)&&(e=e.replace(x,j)),t.stylize("'".concat(u(e,t.truncate-2),"'"),"string")}function M(e){return"description"in Symbol.prototype?e.description?"Symbol(".concat(e.description,")"):"Symbol()":e.toString()}var P=function(){return"Promise{}"};try{var N=process.binding("util"),k=N.getPromiseDetails,E=N.kPending,A=N.kRejected;Array.isArray(k(Promise.resolve()))&&(P=function(e,t){var n=o(k(e),2),r=n[0],i=n[1];return r===E?"Promise{<pending>}":"Promise".concat(r===A?"!":"","{").concat(t.inspect(i,t),"}")})}catch(e){}var D=P;function T(e,t){var n=Object.getOwnPropertyNames(e),o=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===o.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);var r=f(n.map((function(t){return[t,e[t]]})),t,l),i=f(o.map((function(t){return[t,e[t]]})),t,l);t.seen.pop();var a="";return r&&i&&(a=", "),"{ ".concat(r).concat(a).concat(i," }")}var I=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;var z=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function C(e,t){var n=o(e,2),r=n[0],i=n[1];return t.truncate-=3,i?"".concat(t.stylize(r,"yellow"),"=").concat(t.stylize('"'.concat(i,'"'),"string")):"".concat(t.stylize(r,"yellow"))}function q(e,t){return f(e,t,B,"\n")}function B(e,t){var n=e.getAttributeNames(),o=e.tagName.toLowerCase(),r=t.stylize("<".concat(o),"special"),i=t.stylize(">","special"),a=t.stylize("</".concat(o,">"),"special");t.truncate-=2*o.length+5;var c="";n.length>0&&(c+=" ",c+=f(n.map((function(t){return[t,e.getAttribute(t)]})),t,C," ")),t.truncate-=c.length;var u=t.truncate,l=q(e.children,t);return l&&l.length>u&&(l="".concat(s,"(").concat(e.children.length,")")),"".concat(r).concat(c).concat(i).concat(l).concat(a)}var L="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",F=!1;try{var _=e("util");F=!!_.inspect&&_.inspect.custom}catch(e){F=!1}function V(){this.key="chai/loupe__"+Math.random()+Date.now()}V.prototype={get:function(e){return e[this.key]},has:function(e){return this.key in e},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this.key,{value:t,configurable:!0})}};var K=new("function"==typeof WeakMap?WeakMap:V),H={},U={undefined:function(e,t){return t.stylize("undefined","undefined")},null:function(e,t){return t.stylize(null,"null")},boolean:function(e,t){return t.stylize(e,"boolean")},Boolean:function(e,t){return t.stylize(e,"boolean")},number:w,Number:w,bigint:v,BigInt:v,string:S,String:S,function:g,Function:g,symbol:M,Symbol:M,Array:function(e,t){var n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;var o=f(e,t);t.truncate-=o.length;var r="";return n.length&&(r=f(n.map((function(t){return[t,e[t]]})),t,l)),"[ ".concat(o).concat(r?", ".concat(r):""," ]")},Date:function(e,t){var n=e.toJSON();if(null===n)return"Invalid Date";var o=n.split("T"),r=o[0];return t.stylize("".concat(r,"T").concat(u(o[1],t.truncate-r.length-1)),"date")},Map:function(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,"Map{ ".concat(f(function(e){var t=[];return e.forEach((function(e,n){t.push([n,e])})),t}(e),t,b)," }"))},Set:function(e,t){return 0===e.size?"Set{}":(t.truncate-=7,"Set{ ".concat(f(function(e){var t=[];return e.forEach((function(e){t.push(e)})),t}(e),t)," }"))},RegExp:function(e,t){var n=e.toString().split("/")[2],o=t.truncate-(2+n.length),r=e.source;return t.stylize("/".concat(u(r,o),"/").concat(n),"regexp")},Promise:D,WeakSet:function(e,t){return t.stylize("WeakSet{}","special")},WeakMap:function(e,t){return t.stylize("WeakMap{}","special")},Arguments:function(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,"Arguments[ ".concat(f(e,t)," ]"))},Int8Array:y,Uint8Array:y,Uint8ClampedArray:y,Int16Array:y,Uint16Array:y,Int32Array:y,Uint32Array:y,Float32Array:y,Float64Array:y,Generator:function(){return""},DataView:function(){return""},ArrayBuffer:function(){return""},Error:function(e,t){var n=Object.getOwnPropertyNames(e).filter((function(e){return-1===z.indexOf(e)})),o=e.name;t.truncate-=o.length;var r="";"string"==typeof e.message?r=u(e.message,t.truncate):n.unshift("message"),r=r?": ".concat(r):"",t.truncate-=r.length+5;var i=f(n.map((function(t){return[t,e[t]]})),t,l);return"".concat(o).concat(r).concat(i?" { ".concat(i," }"):"")},HTMLCollection:q,NodeList:q},W=Object.prototype.toString;function R(e,t){(t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.showHidden,n=void 0!==t&&t,o=e.depth,r=void 0===o?2:o,i=e.colors,a=void 0!==i&&i,s=e.customInspect,u=void 0===s||s,f=e.showProxy,l=void 0!==f&&f,h=e.maxArrayLength,p=void 0===h?1/0:h,d=e.breakLength,y=void 0===d?1/0:d,g=e.seen,b=void 0===g?[]:g,m=e.truncate,w=void 0===m?1/0:m,v=e.stylize,x=void 0===v?String:v,O={showHidden:Boolean(n),depth:Number(r),colors:Boolean(a),customInspect:Boolean(u),showProxy:Boolean(l),maxArrayLength:Number(p),breakLength:Number(y),truncate:Number(w),seen:b,stylize:x};return O.colors&&(O.stylize=c),O}(t)).inspect=R;var o=t.customInspect,r=null===e?"null":n(e);if("object"===r&&(r=W.call(e).slice(8,-1)),U[r])return U[r](e,t);if(o&&e){var i=function(e,t,n){return L in e&&"function"==typeof e[L]?e[L](t):F&&F in e&&"function"==typeof e[F]?e[F](t.depth,t):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&K.has(e.constructor)?K.get(e.constructor)(e,t):H[n]?H[n](e,t):""}(e,t,r);if(i)return"string"==typeof i?i:R(i,t)}var a=!!e&&Object.getPrototypeOf(e);return a===Object.prototype||null===a?T(e,t):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?B(e,t):"constructor"in e?e.constructor!==Object?function(e,t){var n="";return I&&I in e&&(n=e[I]),(n=n||d(e.constructor))&&"_class"!==n||(n="<Anonymous Class>"),t.truncate-=n.length,"".concat(n).concat(T(e,t))}(e,t):T(e,t):e===Object(e)?T(e,t):t.stylize(String(e),r)}var G=L;t.custom=G,t.default=R,t.inspect=R,t.registerConstructor=function(e,t){return!K.has(e)&&(K.set(e,t),!0)},t.registerStringTag=function(e,t){return!(e in H)&&(H[e]=t,!0)},Object.defineProperty(t,"__esModule",{value:!0})}))},{util:void 0}],38:[function(e,t,n){"use strict";function o(e,t){return null!=e&&t in Object(e)}function r(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(e){if("constructor"===e||"__proto__"===e||"prototype"===e)return{};var t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,"$1")}}))}function i(e,t,n){var o=e,r=null;n=void 0===n?t.length:n;for(var i=0;i<n;i++){var a=t[i];o&&(o=void 0===a.p?o[a.i]:o[a.p],i===n-1&&(r=o))}return r}function a(e,t){var n=r(t),a=n[n.length-1],s={parent:n.length>1?i(e,n,n.length-1):e,name:a.p||a.i,value:i(e,n)};return s.exists=o(s.parent,s.name),s}t.exports={hasProperty:o,getPathInfo:a,getPathValue:function(e,t){return a(e,t).value},setPathValue:function(e,t,n){return function(e,t,n){for(var o=e,r=n.length,i=null,a=0;a<r;a++){var s=null,c=null;if(i=n[a],a===r-1)o[s=void 0===i.p?i.i:i.p]=t;else if(void 0!==i.p&&o[i.p])o=o[i.p];else if(void 0!==i.i&&o[i.i])o=o[i.i];else{var u=n[a+1];s=void 0===i.p?i.i:i.p,c=void 0===u.p?[]:{},o[s]=c,o=o[s]}}}(e,n,r(t)),e}}},{}],39:[function(e,t,n){!function(e,o){"object"==typeof n&&void 0!==t?t.exports=o():e.typeDetect=o()}(this,(function(){"use strict";var e="function"==typeof Promise,t="object"==typeof self?self:global,n="undefined"!=typeof Symbol,o="undefined"!=typeof Map,r="undefined"!=typeof Set,i="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,s="undefined"!=typeof DataView,c=n&&void 0!==Symbol.iterator,u=n&&void 0!==Symbol.toStringTag,f=r&&"function"==typeof Set.prototype.entries,l=o&&"function"==typeof Map.prototype.entries,h=f&&Object.getPrototypeOf((new Set).entries()),p=l&&Object.getPrototypeOf((new Map).entries()),d=c&&"function"==typeof Array.prototype[Symbol.iterator],y=d&&Object.getPrototypeOf([][Symbol.iterator]()),g=c&&"function"==typeof String.prototype[Symbol.iterator],b=g&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var c=typeof n;if("object"!==c)return c;if(null===n)return"null";if(n===t)return"global";if(Array.isArray(n)&&(!1===u||!(Symbol.toStringTag in n)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&n===window.location)return"Location";if("object"==typeof window.document&&n===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&n===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement"}}var f=u&&n[Symbol.toStringTag];if("string"==typeof f)return f;var l=Object.getPrototypeOf(n);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":e&&l===Promise.prototype?"Promise":r&&l===Set.prototype?"Set":o&&l===Map.prototype?"Map":a&&l===WeakSet.prototype?"WeakSet":i&&l===WeakMap.prototype?"WeakMap":s&&l===DataView.prototype?"DataView":o&&l===p?"Map Iterator":r&&l===h?"Set Iterator":d&&l===y?"Array Iterator":g&&l===b?"String Iterator":null===l?"Object":Object.prototype.toString.call(n).slice(8,-1)}}))},{}]},{},[1])(1)})); ```
James Ralph Scales (May 27, 1919 – March 12, 1996) was president of Oklahoma Baptist University (his alma mater), 1961–1965, and eleventh president of Wake Forest University, from 1968-1983. He was a member of the Cherokee Nation and was active throughout his life in Cherokee affairs. Background and career Scales was born in Delaware County, Oklahoma to John Grover, Senior, and Katie Scales. John Grover Scales, Senior, had been born in 1889 in Spavinaw Creek, Indian Territory and was a Baptist pastor until his death in 1971. Katie and Scales together had two sons, James Ralph and John Grover, Junior, who died in 1953 at age 30. Scales began his career in education after graduating with his undergraduate and master's degrees from Oklahoma Baptist University in 1939 and 1941. Scales then served in the U.S. Navy from 1942 to 1945 during World War II, earning medals of honor and distinction for his service. Scales then followed his career in higher education as an associate professor and professor, from 1947 to 1961. He moved to college administration in 1950, moving to vice president (1950-1953), executive vice president (1953-1961), and president (1961-1965). In 1965, Scales became dean of the College of the Arts and Sciences and a professor of political science at Oklahoma State University. While living in Oklahoma, Scales was active in Democratic Party politics, serving as an alternate for the 1956 Democratic National Convention. In 1967, Scales became the eleventh president of Wake Forest University. During his time at Wake Forest, Scales oversaw an increased undergraduate enrollment and an expanded academic curriculum. He was responsible for a fine arts center building project, later named the James R. Scales Fine Arts Center, and the acquisition of Worrell House in London, England, and Casa Artom in Venice, Italy. Scales resigned from the Office of the President in 1983. His wife, Elizabeth Ann (Randel) Scales was born in Osage County, Oklahoma. Known as Betty Ann, she earned a B.A. degree from Oklahoma Baptist University in 1939. Betty Ann helped lead various college, social, and Baptist organizations while raising two daughters, Ann Catherine, a notable lawyer who coined the term "feminist jurisprudence," and Laura Elizabeth Scales, who died at age 20 in 1969. Betty Ann died on August 11, 1992. References Oklahoma politics : a history / by Scales, James R. (James Ralph), 1919–. LAWTON PUBLIC LIBRARY. Accessed 2011-01-21. A Brief History of OBU. Oklahoma Baptist University. Accessed 2011-01-21. A History of Wake Forest University Timeline. Wake Forest University Z. Smith Reynolds Library Special Collections and Archives. Accessed 2018-10-19. 1919 births 1996 deaths People from Delaware County, Oklahoma Presidents of Oklahoma Baptist University Presidents of Wake Forest University Military personnel from Oklahoma Oklahoma Democrats Educators from Oklahoma United States Navy personnel of World War II 20th-century American academics Native American academics Cherokee Nation academics Oklahoma Baptist University alumni
Yakovtsevo () is a rural locality (a village) in Staroselskoye Rural Settlement, Vologodsky District, Vologda Oblast, Russia. The population was 1 as of 2002. Geography Yakovtsevo is located 30 km southwest of Vologda (the district's administrative centre) by road. Abramovo is the nearest rural locality. References Rural localities in Vologodsky District
Google Docs Editors is a web-based productivity office suite offered by Google within its Google Drive service. The suite includes Google Docs (word processor), Google Sheets (spreadsheet), Google Slides (presentation software), Google Drawings (vector drawing program), Google Forms (online forms, quizzes and surveys), Google Sites (graphical website editor), and Google Keep (note-taking application). It used to also include Google Fusion Tables until it was discontinued in 2019. The Google Docs Editors suite is available freely for users with personal Google accounts: through a web application, a set of mobile apps for Android and iOS, and a desktop application for Google's ChromeOS. Availability The Google Docs Editors suite is available free of charge for users with personal Google accounts. It is also offered as part of Google's business-centered service, Google Workspace. Competition The suite mainly competes with Microsoft Office and iWork software suites. It pioneered real-time collaborative editing since its inception in 2006, while Microsoft Office only introduced it in 2013. The suite can open and write Microsoft Office file formats. The Google Docs Editors Suite is available for free to users with private Google accounts. It is also offered as part of Google's business-oriented Google Workspace service, which ran until October 2020 under the name G Suite, a monthly subscription service that unlocks additional features. See also List of collaborative software Comparison of office suites Microsoft Office Microsoft 365 iWork References Docs Editors Docs Editors Office suites
```python # Generated by Django 2.2.2 on 2019-08-09 02:06 from django.db import migrations def to_promgen(apps, schema_editor): Rule = apps.get_model("promgen", "Rule") ContentType = apps.get_model("contenttypes", "ContentType") sites, _ = ContentType.objects.get_or_create(app_label="sites", model="site") promgen, _ = ContentType.objects.get_or_create(app_label="promgen", model="site") Rule.objects.filter(content_type_id=sites.id).update(content_type_id=promgen.id) def to_sites(apps, schema_editor): Rule = apps.get_model("promgen", "Rule") ContentType = apps.get_model("contenttypes", "ContentType") sites, _ = ContentType.objects.get_or_create(app_label="sites", model="site") promgen, _ = ContentType.objects.get_or_create(app_label="promgen", model="site") Rule.objects.filter(content_type_id=promgen.id).update(content_type_id=sites.id) class Migration(migrations.Migration): dependencies = [ ("promgen", "0009_blackbox-module"), ("contenttypes", "0002_remove_content_type_name"), ] operations = [migrations.RunPython(to_promgen, to_sites)] ```
You Never Give Me Your Money is a book by author and music journalist Peter Doggett about the break-up of the English rock band the Beatles and its aftermath. The book was published in the United Kingdom by The Bodley Head in September 2009, and by HarperStudio in the United States in 2010. In the UK, it was subtitled The Battle for the Soul of The Beatles, while the subtitle for US editions was The Beatles After the Breakup. Contents You Never Give Me Your Money discusses the events leading up to the Beatles' break-up in April 1970, starting with the death of the band's manager, Brian Epstein, in August 1967. It tells of the confusion inherent in their Apple Corps business enterprise and how, within a year, the company's precarious financial position attracted the interest of Allen Klein, whose managerial appointment further divided the band members. Doggett documents the myriad lawsuits that began with Paul McCartney's 1971 action in London's High Court to dissolve the Beatles' partnership and extricate himself from Klein's control, and from 1973 onwards saw John Lennon, George Harrison and Ringo Starr reversing their position on Klein and becoming embroiled in litigation with him in courts in London and New York. Following Lennon's death and a lawsuit against Capitol Records in the 1980s, the surviving Beatles unite to realise a common purpose in protecting their financial interests. The book also documents the highly successful Beatles Anthology project in the 1990s and other legacy-related campaigns. Research and writing In his author's acknowledgments in You Never Give Me Your Money, Doggett says that he actively researched for the book over "one intensive year" but otherwise drew on his 30-year experience as a music journalist. When writing the book, Doggett drew on many interviews, including with Beatle wives and family members such as Yoko Ono, Cynthia Lennon, Louise Harrison and Mike McCartney, Apple insiders Derek Taylor, Neil Aspinall and Alistair Taylor, and musical associates such as George Martin, James Taylor and Leon Russell. In his acknowledgments, Doggett also lists Tony Barrow and Alexis Mardas, among others, and highlights Klein's colleague Allan Steckler as "an invaluable last-minute discovery ... with an intimate grasp of the Apple/ABKCO relationship". Throughout 2010 and 2011, Doggett maintained a blog dedicated to discussing the book and items related to the Beatles. In a post written in July 2010, he said that he had set out to write You Never Give Me Your Money without any bias towards any one of the former Beatles but that during the writing process, "I felt saddest and sorriest for Paul McCartney – even while I was highlighting things that he might have done and said differently." Adding that some customer reviews on Amazon had claimed he showed favouritism towards, variously, Lennon, Harrison or Starr, yet none identified "any special sympathy" for McCartney in his text, Doggett concluded: "[It] just goes to prove that the book you're writing, and the book you THINK you're writing, can be two very different things." According to Beatles historian Erin Torkelson Weber, You Never Give Me Your Money depicts the four former bandmates with equal weight given to positive and negative aspects of their characters and actions. She says that, in keeping with a general trend in Beatles literature, it challenges the hagiographic image of Lennon established by Philip Norman's book Shout! in 1981, yet without "gloating over Lennon's struggles" in the fashion of Albert Goldman's 1988 biography. Similarly, according to Weber, Doggett criticises the manner of McCartney's attempts to revise the band's history, describing some of his actions as "graceless", yet he "acknowledges the legitimacy" of McCartney's claim. Publication and reception The book's publication coincided with the release of the Beatles' remastered catalogue on CD, on 9 September 2009, and the release of the computer game The Beatles: Rock Band. The Independent said the book was "enthralling" and "impossible to put down", while the Sunday Herald remarked on its "gripping narrative" and deemed it "the most important book on its subject since Revolution in the Head". In her review for The Independent, Liz Thomson likened You Never Give Me Your Money to a sequel to The Longest Cocktail Party, Richard DiLello's 1972 memoir covering the early years of Apple Corps, adding: "Doggett's arcane detail will be too much for all but diehard fans, but what's most striking is the naiveté of the four men at the heart of the story." Sinclair McKay of The Daily Telegraph described the book as "thoroughly engrossing" and found the author's treatment of the individual protagonists, including the former Beatles, Ono, Linda McCartney and Klein, "admirably even-handed" since "everyone comes in for a pasting." Writing for New Statesman, Jude Rogers said that Doggett offered a new perspective on the Beatles by focusing on the commercial aspect of their legacy, adding: "by subtitling his book The Battle for the Soul of the Beatles, he is also showing us that he is on their side, keen to preserve their special musical alchemy while unravelling the myths that surround them as people." She said that, while the narrative can be as complex as the band's business concerns, Doggett excels in "quietly laying bare" the double standards behind the individuals' actions. According to Doggett, in the same July 2010 blog post, the book's only unfavourable review up to that point was a piece in The Mail on Sunday by Hunter Davies, author of the Beatles' 1968 self-titled authorised biography. David Ulin of the Los Angeles Times described the book as "elegant and deeply researched", and especially praised the author's "sense of the textures, the delicate interplay of individual and collective history, that continued to define the members of the Beatles long after they had ceased to function as a cohesive entity". He also said that, while the narrative focuses on the group's financial empire and offers a revealing picture of the protagonists' behaviour, "to Doggett's credit, we never lose our sympathy for complicated people hurt by what's gone on." Marjorie Kehe, writing in The Christian Science Monitor, similarly found Doggett's tone "always respectful and often rather affectionate" towards the former Beatles, and said that by drawing on viewpoints from several other individuals in their circle, he creates "a sophisticated narrative that recognizes that the mistakes and miscues were too multiple to attribute to any one figure". Kehe wrote that although Lennon and McCartney, particularly, come across as equally selfish, "[Readers] can be grateful that, if the Beatles' story must be told, it has fallen into a pair of hands as capable and caring as those of Doggett." In December 2010, You Never Give Me Your Money was included in the Los Angeles Times top ten books of the year, as chosen by Ulin. According to Erin Torkelson Weber, writing in 2016, You Never Give Me Your Money is "one of the most influential books in all Beatles historiography". Writing for Pitchfork in 2018, Stephen Thomas Erlewine included it in his selection of the "best Beatles books". He concluded of its account of the band's post-1970 lawsuits and the struggle for commercial control of the Beatles' legacy into the 21st century: "As these grimy economic particulars constitute largely unexplored territory in Beatles books, You Never Give Me Your Money is riveting in a unique way, as Doggett's clean and lucid style turns courtroom battles and petty grievances into high drama." References Books about the Beatles 2009 non-fiction books The Bodley Head books
The 1945 Homestead Amy Air Base Skymasters football team represented the United States Army Air Force's Homestead Army Air Base (Homestead AAB), also called Homestead Army Air Field (Homestead AAF), in Miami-Dade County, Florida during the 1945 college football season. Led by head coach Alvin Reilly, the Skymasters compiled a record of 0–3. Homestead AAB ranked 297th among the nation's college and service teams in the final Litkenhous Ratings. Schedule References Homestead Army Air Base Homestead Army Air Base Skymasters football seasons College football winless seasons Homestead Army Air Base football
is a Japanese convention center outside Tokyo, located in the Mihama-ku ward of Chiba City, in the northwest corner of Chiba Prefecture. Designed by Fumihiko Maki, it is accessible by Tokyo's commuter rail system. Makuhari is the name of the area, and Messe is a German language word meaning "trade fair". The convention center opened on 9 October 1989. It hosts many high-technology events. Makuhari Messe is close to Tokyo Disney Resort in Urayasu, and to Chiba prefecture's black sand beaches. It is accessible from Kaihimmakuhari station on the Keiyō Line of East Japan Railway Company (JR East). The center is the host of the annual Tokyo Auto Salon (modified car show, in January), the biennial Tokyo Motor Show (in October), the annual Tokyo Game Show (video game hardware and software exhibition, in September), the annual Jump Festa (manga, anime, and video game exposition, in December), and the biannual Wonder Festival (toys, scale figures, and garage kits exposition, in February and July). The venue was host to several Nintendo Space World events. It was the venue for several sports during the Tokyo 2020 Olympic and Paralympic Games. Notable events On 14-15 June 1997, the first official Pokémon Trading Card Game tournament was held here. On 31 July 1999, rock band Glay held Glay Expo '99 Survival in the venue's parking lot. The concert garnered a total audience of 200,000 people, making it the largest-ticketed concert ever held by a single act at the time, as certified by the Guinness World Records. Since 2000, the center has been used for the Summer Sonic music festival every year, where the venue hosts the Mountain and Sonic stages. On 2-3 November 2002, Red Hot Chili Peppers hosted a gig as part of the By the Way Tour. On 19 September 2009, The Black Eyed Peas performed a concert as part of their The E.N.D. World Tour. On 23-24 April 2011, Australian singer Kylie Minogue performed as part of her Aphrodite: Les Folies Tour. The venue was noted in 2005 for hosting the first round of the worldwide Live 8 string of concerts. On 1 July 2005, the company that owns the convention center changed its name from "Nippon Convention Center" to "Makuhari Messe". From 19 to 21 July 2008, Lucasfilm presented a Star Wars Celebration Japan event at the venue to celebrate the 30th anniversary of the Japanese premiere of Star Wars. The "Jack in the Box 2009 Summer" convention was held here on 15 August 2009, where numerous well-known acts performed, including the reunion performance of influential metal band Dead End. American pop singer Lady Gaga performed in the arena for the first time, as part of her debut headlining tour, The Fame Ball Tour, during the Summer Sonic Festival, on 8 August 2009 and for MTV Video Music Aid Japan in 2011. The center hosted the Magic: The Gathering World Championship in 2010. It was scheduled to host the Anime Contents Expo, hosted by the Comic-10 Shakai in March 2011 to counter the Tokyo International Anime Fair as part of their boycott of the Tokyo Metropolitan Government under Governor Shintarō Ishihara, but both events were cancelled after the 2011 Tōhoku earthquake and tsunami. The first Anime Contents Expo was held on 31 March and 1 April 2012, and was visited by 42,000 people. The Korean girl group, 2NE1, performed here as part of their NOLZA Tour here on 1-2 October 2011. The Japanese band The Gazette held various concerts there, including their 10th-anniversary concert on 10 March 2012. The heavy metal annual festival tour Ozzfest took place here on 11-12 May 2013. This was the festival's first appearance in Japan. Kawaii metal band Babymetal has played a number of concerts here including the Legend 1997 show on 21 December 2013 for singer Su-metal's 16th birthday, which was recorded for live DVD. On their 2015 World Tour, they would again play here and release the performance on live DVD as part of the Trilogy: Metal Resistance Episode III – Apocalypse limited edition DVD set available only to members of "The One". One Direction's Final Leg of their Take Me Home Tour was held in the International Exhibition Halls 7 and 8. Mariah Carey performed in the arena for the first time, as part of her The Elusive Chanteuse Show on 4 October 2014. The Metal festival "Knotfest Japan" was held here on 15-16 November 2014. As an epilogue to their 25th anniversary, Luna Sea hosted the rock festival Lunatic Fest on 27-28 June 2015. Other acts include Siam Shade, Dir en grey, 9mm Parabellum Bullet and Fear, and Loathing in Las Vegas the first night and Glay, Mucc and Alexandros the second. Techno-Pop group Perfume performed at concerts 16, 18, and 19 June 2016. It has been the venue of Magical Mirai, an annual Vocaloid exhibition and concert held usually during the end of August or early September, featuring Hatsune Miku since 2016. On 2-3 December 2017, the trance-pop duo fripSide performed at the venue for their “crossroads 2017-2018 tour”. In 2017 and 2018, it held the obstacle course show Kunoichi. Ariana Grande played three shows at the arena for her 2017 Dangerous Woman Tour performing to over 52,000 people. Makuhari Messe became the venue for four sports during the Tokyo 2020 Olympics. The sports of fencing, taekwondo, karate, and wrestling were originally to be staged at Tokyo Big Sight. This move was a part of cost-cutting measures implemented by the organisers. Karate has since been moved to the Nippon Budokan. Assigned halls for the Games are: Hall A: For the Olympic Games, taekwondo and wrestling; then for the Paralympic Games, sitting volleyball; Hall B: For the Olympic Games, fencing; then for the Paralympic Games, taekwondo and wheelchair fencing; Hall C: For the Paralympic Games, goalball. Lucasfilm is scheduled to present another Star Wars Celebration Japan event at the venue from 18 to 20 April 2025. Gallery References External links Makuhari Messe website Makuhari Messe Map Basketball venues in Japan Venues of the 2020 Summer Olympics Olympic wrestling venues Olympic fencing venues Olympic taekwondo venues Convention centers in Japan Fumihiko Maki buildings Indoor arenas in Japan Modernist architecture in Japan Music venues in Japan Sports venues in Chiba (city) Tourist attractions in Chiba Prefecture Judo venues Music venues completed in 1989 Sports venues completed in 1989 1989 establishments in Japan
A Rail Drilling Machine is a type of portable drilling machine specialized for drilling holes in rails. Rail Drilling Machines are also popularly called as Rail Drills, Portable Rail Drill, Rail Core Drilling Machines, etc. Purpose The rail drilling machines are used for drilling holes needed for among others: Joining two rails (but nowadays rails are usually welded instead) Signaling Inserting cables in tracks Providing earthing to tracks Connecting sensors Types of Rail Drilling Machine Generally, there are three types of rail drilling machines depending on their drive. Electric Driven Rail Drilling Machine The Electric Driven Rail Drilling Machine runs on electricity. The machine needs an electric power supply either 230 volts or 110 Volts. This rail drill machines are equipped with power electric DC motor with brushes. The Electric Driven Rail Drilling Machines are ideal machines to use on railway workshops. When using Electric Driven Rail Drilling Machine in a remote location it can also be connected to generators or gen sets. Petrol Engine Driven Rail Drilling Machine The Petrol Engine Driven Rail Drilling Machine or most commonly known as Petrol Rail Drilling Machine runs on Benzin (petrol). This machine is equipped with a petrol engine generally of 1500 Watt (2 HP). The Petrol Rail Drilling Machines are ideal machines when drilling in a remote location where there is no availability of electricity. Cordless Battery Driven Rail Drilling Machine The Cordless Battery Driven Rail Drilling Machine or most commonly known as Cordless Raill Drilling Machine run on electricity supplied from a Li-ion battery. This is the newly developed type of rail drilling machines. This rail drill machines are equipped with power electric DC motor with brushes. This is an ideal machine to make holes in rail tracks at a remote location. The machines can do limited holes as the power of the machine depends on the capacity of the battery. Magnetic Drilling Machines for Rail Drilling A Magnetic Drilling Machines or Magnetic Drill Press is also commonly used for drilling rails. Some compact low height magnetic drilling machines are ideal to clamp inside the profile of rail track and make holes. These machines are suitable for use inside railway workshop. A heavy duty magnetic drilling machine can also be used for drilling railway tracks in a workshop considering the size of the magnet fits in the profile of rail track. In this case, the railway track has to be placed in sleeping position. Rail Cutters Mainly two types of cutters or cutting tools are used for rail drilling with the drilling machine. Rail Annular Cutters The Rail Annular Cutters or Rail Core Drills are one of the types of Annular Cutters. These rail core drills are made from Tungsten Carbide Tip. The rail core drills are very strong and can drill hard and corroded material. The rail core drills due its geometry are available only above 12 mm diameter. Rail Twist Drills The Rail Twist Drill or Rail Drill Bits are the types of Spiral Drill Bits. These drill bits are ideal for making smaller diameter holes which are not possible with TCT Annular Cutters. These drill bits can make holes as low as 2 mm diameter. Mostly 6 to 8 mm diameter holes required for earthing cables or attaching sensors to rail tracks are made by twist drill bits. Machine for Keyslot (Oval) Holes in Tracks There are some applications where oval holes or key slots as to be made in the rail track. For such application, a portable milling machine with cross table base is used. Such machines can make a key slot with the help end mill cutting tools. There are very few manufacturers which produce such types of machines. The demand for such machines increases as it delivers portability. References Drilling technology Maintenance of way equipment
American singer and actress Becky G has received many awards and nominations throughout her career. She won the Latin American Music Awards for Favorite Pop/Rock Female Artist. Gomez was honored as one of the Leading Ladies of Entertainment by The Latin Recording Academy in 2018. In 2019, Gomez was awarded the Extraordinary Evolution Award for her evolving work in a short span of years. In 2023, she received the Impact Award at the Billboard Women in Music event. In 2017, Gomez released the single "Mayores", which was nominated for Top Latin Song at the Billboard Music Awards, and won Song of the Year at the Latin American Music Awards. In 2018, Gomez released the single "Sin Pijama", won Urban Song of the Year at the Lo Nuestro Awards, and won International Artist Song at the Premios Tu Música Urbano. At the Premios Gardel, the song "Cuando Te Besé" received two nominations, and won Best Urban/Trap Collaboration. In 2019, she released her debut studio album, Mala Santa, and was nomination for Best Female Album at the Premios Tu Música Urbano. For her work on Christina Aguilera's studio album, Aguilera, as featured artist on "Pa Mis Muchachas", she was nominated for Album of the Year at the 23rd Annual Latin Grammy Awards. In 2022, Gomez released the single "Mamiii", won for Song of the Year at the Latin American Music Awards, and won for Latin Pop/Reggaeton Song of the Year at the iHeartRadio Music Awards. In 2022, Gomez released her second studio album, Esquemas, was nominated for Latin Pop Album of the Year at the Billboard Latin Music Awards, and received Album of the Year nominations from the Latin American Music Awards and Lo Nuestro Awards award ceremonies. Awards and nominations Honours Other accolades Listicles Notes References External links G, Becky
Jadzień is a village in the administrative district of Gmina Kiernozia, within Łowicz County, Łódź Voivodeship, in central Poland. In 2011, its population was 91 people. References Villages in Łowicz County
Communauté d'agglomération Grand Lac is the communauté d'agglomération, an intercommunal structure, centred on the town of Aix-les-Bains. It is located in the Savoie department, in the Auvergne-Rhône-Alpes region, southeastern France. Created in 2017, its seat is in Aix-les-Bains. The name Grand Lac refers to the Lac du Bourget. Its area is 300.0 km2. Its population was 76,759 in 2019, of which 30,463 in Aix-les-Bains proper. Composition The communauté d'agglomération consists of the following 28 communes: Aix-les-Bains La Biolle Bourdeau Le Bourget-du-Lac Brison-Saint-Innocent Chanaz La Chapelle-du-Mont-du-Chat Chindrieux Conjux Drumettaz-Clarafond Entrelacs Grésy-sur-Aix Méry Montcel Motz Mouxy Ontex Pugny-Chatenod Ruffieux Saint-Offenge Saint-Ours Saint-Pierre-de-Curtille Serrières-en-Chautagne Tresserve Trévignin Vions Viviers-du-Lac Voglans References Grand Lac Grand Lac
```javascript import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBattery60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V11H7z"/> </SvgIcon> ); DeviceBattery60.displayName = 'DeviceBattery60'; DeviceBattery60.muiName = 'SvgIcon'; export default DeviceBattery60; ```
Philipp Aeby is the Chief Executive Officer of RepRisk, an environmental, social, and governance (ESG) data science company based in Zurich, specializing in ESG and business conduct risk research and quantitative solutions. He has served in that capacity since 2010 and is also a Board Member of RepRisk. He previously held the position of Chief Operating Officer and Managing Partner, when RepRisk was part of the environmental and social consultancy, Ecofact. Professional career Before joining RepRisk in 2006, Philipp worked in various managerial positions across Europe at Amgen, the global biopharmaceutical firm. He was a member of the Regional European Management Team based in Brussels where he had the responsibility of budgeting, planning, and sales and marketing effectiveness for Central and Eastern Europe, Benelux, Scandinavia, and the UK. He was also a member of the European Sales Leadership Council at Amgen. Philipp started his professional career at the Boston Consulting Group, where he worked on a broad range of international assignments. In 1994-1995, he was a research associate at CIAT, the International Center for Tropical Agriculture in Colombia. Philipp currently serves on the Board of Swiss Sustainable Finance, an organization that aims to promote sustainability in the Swiss financial market, and also positions Switzerland as a hub for sustainable finance. He serves on the Business Advisory Board of Swisspeace, a Swiss-based research institute focused on conflict resolution and peace-building. He was also on UNICEF’s Advisory Board during the launch of UNICEF’s Children’s Rights and Business Principles Education Philipp studied history at the University of Basel. Philipp then attended the Swiss Federal Institute of Technology (ETH) in Zurich, Switzerland, where he earned a Master’s of Science in Climatology (1991-1994), followed by a PhD in Environmental Physics (1995–1998). His doctoral thesis was on the topic of quantitative fluorescence imaging of tracer distributions in soil profiles. He earned the ETH Medal for outstanding research that involved applying neural networks to pattern recognition. He has also authored or contributed to various studies and books on the top of sustainability and ESG, including a joint research study by AfU Investor Research and RepRisk on the ESG Performance of European Investment Funds, as well as a chapter in the book "CSR and Finance: the Contribution and Role of the CFO for the Sustainable Management of a Firm" ("CSR und Finance: Beitrag und Rolle des CFO für eine Nachhaltige Unternehmensführung"), entitled "New Risks: Reputation, Compliance, Climate, Water, Raw Materials, Biodiversity, Human Rights, Working Conditions, Corruption." He is considered knowledgeable on reputational risk and ESG risk, and is often interviewed on the topic by various media. Personal life Philipp grew up in Münchenstein outside of Basel, Switzerland. In 2005, Philipp married Dr. , Head of Cyber and Digital Strategy at Swiss Re, the global reinsurance company. They live in the Zurich area and have three sons. In 2009, he published a book entitled Kolumbianische Scheidung (Colombian Divorce), a thriller about greed and governance in the pharmaceutical industry. References Living people 1968 births Businesspeople from Zürich Swiss chief executives Businesspeople from Basel-Stadt Chief operating officers University of Basel alumni ETH Zurich alumni
```php <?php /** * * * path_to_url * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either */ namespace Aws\Redshift\Exception; /** * The request would exceed the allowed number of cluster instances for this account. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Management Guide. */ class ClusterQuotaExceededException extends RedshiftException {} ```
The Kirkoswald Hoard is a ninth-century hoard of 542 copper alloy coins of the Kingdom of Northumbria and a silver trefoil ornament, which were discovered amongst tree roots in 1808 within the parish of Kirkoswald in Cumbria, UK. Discovery The hoard was discovered in 1808 near the village of Kirkoswald in Cumbria. It was found within the roots of a tree which had been blown down; other than the parish, there is no further find spot recorded. Contents The hoard comprised 542 or more stycas, as well as a silver trefoil ornament. The coins within the assemblage were issued by the kings of Northumbria, Eanred, Aethelred II, Redwulf and Osberht, as well as by the archbishops of York, Eanbald II, Wigmund and Wulfhere. They were first described by the antiquarian John Adamson. Based on the contents of the hoard, its date of deposition has been attributed to c.865. Comparisons have been made between the metalwork on the trefoil ornament and objects found in the Trewhiddle Hoard and in the West Yorkshire Hoard. Whilst it appears to have been deposited at the same time as the coins, it may date from the late eighth century. Acquisition Soon after its discovery the hoard was split up: the ornament was eventually purchased by the British Museum. The coins were split and parcels of the find made their way into the hands of private collections. By 1814, six coins from the find were in the collection of the Society of Antiquaries of Newcastle. They were donated by the Atkinson family who had an estate at Temple Sowerby nearby. The whereabouts of the rest of the coins are unknown. See also List of hoards in Great Britain Hexham Hoard Elizabeth Pirie Notes References Anglo-Saxon archaeology History of Cumbria Medieval European objects in the British Museum 9th century in England Hoards from Anglo-Saxon Britain Archaeological discoveries in the United Kingdom
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\PeopleService; class ImClient extends \Google\Model { /** * @var string */ public $formattedProtocol; /** * @var string */ public $formattedType; protected $metadataType = FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $protocol; /** * @var string */ public $type; /** * @var string */ public $username; /** * @param string */ public function setFormattedProtocol($formattedProtocol) { $this->formattedProtocol = $formattedProtocol; } /** * @return string */ public function getFormattedProtocol() { return $this->formattedProtocol; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setProtocol($protocol) { $this->protocol = $protocol; } /** * @return string */ public function getProtocol() { return $this->protocol; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUsername($username) { $this->username = $username; } /** * @return string */ public function getUsername() { return $this->username; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ImClient::class, 'Google_Service_PeopleService_ImClient'); ```
The leading role of the Communist party is a constitutional principle in the Soviet Union and other countries led by Communist parties. It says that the Party (in its role of the vanguard of the proletariat) is responsible for the decision processes on all levels of the society. The leading role of the Communist Party of the Soviet Union (CPSU) was first enshrined in Article 126 of the Stalin Constitution, which described the Party as "the vanguard of the working people in their struggle to strengthen and develop the socialist system and is the leading core of all organizations of the working people, both public and state." Article 6 of the 1977 Soviet Constitution placed limitations on the political rights of Soviet citizens. While the rest of the constitution theoretically assured the public freedom of speech, freedom of assembly and freedom of press these rights were rendered less meaningful by the reservation of article 6 that the Communist Party of the Soviet Union was the "leading and guiding force of the Soviet society". The text of the article follows in English translation. The leading and guiding force of the Soviet society and the nucleus of its political system, of all state organisations and public organisations, is the Communist Party of the Soviet Union. The CPSU exists for the people and serves the people. The Communist Party, armed with Marxism–Leninism, determines the general perspectives of the development of society and the course of the home and foreign policy of the USSR, directs the great constructive work of the Soviet people, and imparts a planned, systematic and theoretically substantiated character to their struggle for the victory of communism. All party organisations shall function within the framework of the Constitution of the USSR. This provision was used to justify the ban on other parties, as well as harsh measures against opposition of any sort. The theory was that since the CPSU was the vanguard of the state, its right to rule could not be legitimately questioned. On March 14, 1990 Article 6 was amended by the 3rd Extraordinary Congress of People's Deputies of the Soviet Union, to read as follows: The Communist Party of the Soviet Union, other political parties as well as labor, youth and other public organisations and mass movements, through their representatives elected to the Councils of People's Deputies and in other forms participate in the policy-making of the Soviet state, in the management of state and public affairs. This move was introduced by Mikhail Gorbachev in tandem with the creation of the office of the president of the USSR (which he viewed largely as an office for himself), and as a means to formalize the transition to a multi-party political system. After the amending of Article 6 of the Constitution, the CPSU effectively lost its right to rule the Soviet Union's government apparatus; paving the way towards a multi-party democracy. Similar articles are or were in constitutions of many other countries, where the Communist parties obtained uncontested power. For example the current Constitution of the People's Republic of China speaks about the leading role of the Party both in its preamble and in its Article 1, where it says: "Leadership by the Communist Party of China is the defining feature of socialism with Chinese characteristics." References Law of the Soviet Union 1977 in law 1977 in the Soviet Union Communist parties
College Station (also known as UP Los Baños station and Junction station) is a railway station located on the South Main Line in Los Baños, Laguna, Philippines. History American era The station was built in response to the Los Baños–San Pablo bypass line that aims to cut the travel time from Manila down to the South Main Line compared to the current route that passes through the province of Batangas. This in turn, made the Los Baños section of the Pagsanjan-Sta Cruz Branch line part of the PNR Main Line to Bicol. Now with two rail lines diverging from this station, it became known as the "Junction Station". Over time, it was eventually referred to its present name due to its proximity to the University of the Philippines College of Agriculture (now known as University of the Philippines Los Baños). During its peak, the station become the terminus for the now defunct Pagsanjan Line and consisted of multiple tracks with side and island platforms. The line was served by the Railmotors of Manila Railroad Company and usually have 5 trips per day. In the year 1938 to 1939, the island platform and passenger shelters are constructed for the station. One notable structure was the pebbled pillars made by Filipino Architect and National Artist Pablo Antonio. World War 2 The station was subjected from air attacks when Imperial Japan have invaded the country after the attack on Pearl Harbor. On Christmas Day of 1941, a train on the station was bombed by the invading Japanese forces where 30 passengers have lost their lives. Structures were damaged and caused multiple loss of lives as well. It suffered further damage as the Americans returned to liberate the country and bombed the station as well. Post-War After the war, MRR rehabilitated the train lines coming from the station going to Lucena (68.02 km) and part of the Pagsanjan Line (28.38 km). The college-Pagsawitan section was restored on September 1, 1946, after repair works were done on bridges, buildings, and communication lines. The short spur of rail line from Pagsawitan to Pagsanjan was excluded as it was removed by the Japanese during the war. Meanwhile, the college-Lucena section of the Main Line South was also rehabilitated and placed back into operation on February 20, 1947. The first through traffic from Manila to Bicol since the liberation was finally inaugurated after completing repair works of tracks, buildings, structures, and most importantly, the repair of the Palicpic Bridge which was blasted during the war. Contemporary era Train service on the station have been repeatedly opened and closed for a variety of reasons such as natural disasters, lack of proper maintenance, and/or lack of rolling stock throughout its history. Metro Manila Rail Commuter Philippine National Railways initiated the Metro Manila Railway Commuter project on November 30, 1972, after the opening of the new Tutuban-San Pedro and Carmona route which was expanded later on up to College. The service uses the CMC Railcars plying the 67 km line, offering fast and cheap mode of transport in the province. Metrotren The 90's saw the launch of Metrotren Project, also known as Metrotrak, under the leadership of Transportation Secretary Oscar Orbos. It aims to increase ridership on the current commuter line, which serves Calumpit, Bulacan up to Los Baños Laguna, from its present level of 60,000 to about 140,000 daily than the current level. College was rehabilitated and Metrotren logos and markings decorated the station. As of November 2021, some of them are still visible in the station pillars and roof. The service used CMC Railcars refurbished with the new Metrotren Livery. Commuter Express On August 3, 2001, former President Gloria Macapagal Arroyo inaugurated the new Commuter Express (CommEx) service from Tutuban to College using donated 12 Series Passenger Coaches from Japan, which promised development and more opportunities for the Laguna Residents and the province as a whole. Services was disrupted again five years later, as Typhoon Milenyo as it ravaged the rail line going to Bicol, primarily the San Cristobal Bridge on Calamba on September 28 with Typhoon Reming following two months later, which further damaged theine and destroying Travesia Bridge in Ligao-Guinobatan Section. The line would not be serviceable until 2010. Metro South Commuter In December 2019, the station become active once again as PNR extended the Metro South Commuter trips by adding 5 more stations on the present commuter line. KiHa 59 series and KiHa 35 trainsets ply the route, with the former servicing the entire route to Tutuban and the latter going up to Alabang only. Services become disrupted again as soon as the lockdown caused by the COVID-19 Pandemic takes effect mid-March 2020. As of October 2021, the service is still inactive. Present In the present day, the platform of College Station opposite the active line currently serves as a terminal for trikes serving the barangays of Batong Malake and Mayondon. Some residents occupy the area in and around the station building. The station's passing loop was also in a bad state with some parts of the tracks dismantled, if not being under a layer of soil but still recognizable. The station was also used by PNR to some extent as it serves as stopover for passing work trains conducting clearing operations in and around Los Banos during the first quarter of the year 2022. In January 2022, the steel stairs was dismantled by PNR Crew along with DEL 5007 to be repurposed for the upcoming Inter-Provincial Commuter Train Service between San Pablo City in the province of Laguna and Lucena City in the province of Quezon. In May 2022, the station saw an increased presence of PNR employees along with security personnel. The station building, along with some of the shed are repainted and repaired. Old roofing and the ceiling was replaced with new ones. The interiors are still awaiting to be retrofitted even though there is already employees stationed inside. These progress hints for possible reopening of services in the near future. The commuter service still did not materialize as of August 2022, two months after the supposed opening of the Dela Rosa, Makati to Lucena City Line, with the allocated steel stairs now relegated to San Pablo-Lucena Line. Inter-Provincial Commuter Calamba Extension Philippine National Railways inaugurated the Calamba-Lucena Line on October 6, 2022 in addition to the current San Pablo-Lucena route of Inter-Provincial Commuter Line which runs between the provinces of Laguna and Quezon. The additional stops included in the extension are IRRI Flag stop, College, Los Baños, Masili, Pansol, and Calamba, which was also formerly served by the Metro South Commuter IRRI extension way back 2019. The line utilizes the newest trainsets of PNR bought from PT INKA and will be consisting of only 2 trips daily, departing Lucena early in the morning and Calamba later in the evening. References Philippine National Railways stations
```javascript import PostPreview from "./post-preview"; export default function MoreStories({ posts }) { return ( <section> <h2 className="mb-8 text-6xl md:text-7xl font-bold tracking-tighter leading-tight"> More Stories </h2> <div className="grid grid-cols-1 md:grid-cols-2 md:gap-x-16 lg:gap-x-32 gap-y-20 md:gap-y-32 mb-32"> {posts.map((post) => ( <PostPreview key={post.slug} title={post.title} coverImage={post.feature_image} date={post.published_at} author={post.primary_author} slug={post.slug} excerpt={post.excerpt} /> ))} </div> </section> ); } ```
Charles Littleleaf, a Native American flute player and flute maker, is a tribal member of the Warm Springs Indian Reservation, Oregon. Charles is also an honorary member of the Piikani Nation, Alberta, Canada, and is the son of the late Chief Jack Littleleaf of Brocket, Alberta. Native American flute player In 1992, Warm Springs tribal member, Charles Littleleaf, received a flute from Native American flutist, R. Carlos Nakai. Nakai's gift was intended to encourage Charles to learn the instrument. The following year, Nakai held one of the first Native American flute workshops at the Feathered Pipe Ranch in Helena, Montana and invited Charles to attend. The Feather Pipe workshop lasted two weeks and it was here, amidst players much more technically versed in music, where Charles learned one of the best lessons regarding the traditional flute: that playing from the heart and spirit is where some of the most beautiful Native American flute music will come from. In search of ways to further express his heart, Charles continued to play the flute without instruction. Through these instruments, he also found an emotional way to release healing qualities that would not only benefit himself but all of mankind. At the beginning of this musical journey, Charles played the flute at the home of his ancestors, primarily to family and friends. This is where the first samples of Charles' music developed. Years later, Charles continues playing and enjoying the native flute. He has grounded his flute playing within the essence of Mother Earth and from memories growing up on his reservation which he shares with audiences around the world. Native American flute maker Charles Littleleaf has been creating concert Native American flutes for over 15 years for both professionals and beginners alike. Discography Whispers of Earth Medicine 1997, Littleleaf Music (formerly Redwood Productions) Ancient Reflections 2002, Littleleaf Music Essence of Life 2019, Littleleaf Music Collaboration Heart of the Wolf (flute/vocals with Karen Therese) 2001, Red Feather Music Credits Just Plain Folks Award for 'Song of the Year', Eagle Spirit from artist's Ancient Reflections CD, Los Angeles, CA (2008) Featured article in Celebrity Magazine, Cowboys and Indians (Sept. 2007) Artist documentary on flute making and biography, Oregon Art Beat, Oregon Public Broadcasting (2004) Music soundtrack for the documentary The Oregon Story, Tribal Economies, Oregon Public Broadcasting (2001) Native American Music Award (NAMA) Nominee (2001) References External links Charles Littleleaf website: American people of First Nations descent Confederated Tribes of Warm Springs Native American flautists Native American flute players Native American male artists Musicians from Oregon Living people 1948 births 20th-century American musicians 20th-century American male musicians 21st-century American musicians 21st-century American male musicians 20th-century flautists 21st-century flautists Piikani Nation
```python QUEUED = 10 RUNNING = 20 FAILED = 30 COMPLETED = 40 CANCELED = 50 ```
The Que Club was a music venue in Birmingham, England that was famous for hosting many well-known bands and club nights. As well as hosting famous acts, the Que Club became a centre for alternative culture, including the rave music scene. The Que Club was located in the Grade II-listed Methodist Central Hall in Birmingham. The venue was opened in 1989 after the building was purchased by Rod Stewart's former manager Billy Gaff. Artists performing at the venue included Altern8, Blur, David Bowie, Carl Cox, The Chemical Brothers, Daft Punk, Massive Attack and Run-DMC. During this time, the building still served as a place of worship when not in use as a venue. The Que Club closed in 2017. A documentary film, In The Que, has been made about the club. A retrospective exhibition to celebrate the legacy of the Que Club was held at the Birmingham Museum and Art Gallery in 2022. The photographer Terence Donovan visited the Que Club in 1996, and his photographs of the rave scene there have been exhibited. References Music venues in Birmingham, West Midlands 1989 establishments in England 2017 disestablishments in England
```c++ // Use, modification and distribution are subject to the // LICENSE_1_0.txt or copy at path_to_url // // This file is machine generated, do not edit by hand // Unrolled polynomial evaluation using second order Horners rule #ifndef BOOST_MATH_TOOLS_POLY_EVAL_19_HPP #define BOOST_MATH_TOOLS_POLY_EVAL_19_HPP namespace boost{ namespace math{ namespace tools{ namespace detail{ template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<0>*) { return static_cast<V>(0); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<1>*) { return static_cast<V>(a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<2>*) { return static_cast<V>(a[1] * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<3>*) { return static_cast<V>((a[2] * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<4>*) { return static_cast<V>(((a[3] * x + a[2]) * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<5>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[4] * x2 + a[2]); t[1] = static_cast<V>(a[3] * x2 + a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<6>*) { V x2 = x * x; V t[2]; t[0] = a[5] * x2 + a[3]; t[1] = a[4] * x2 + a[2]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<7>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[6] * x2 + a[4]); t[1] = static_cast<V>(a[5] * x2 + a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<8>*) { V x2 = x * x; V t[2]; t[0] = a[7] * x2 + a[5]; t[1] = a[6] * x2 + a[4]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<9>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[8] * x2 + a[6]); t[1] = static_cast<V>(a[7] * x2 + a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<10>*) { V x2 = x * x; V t[2]; t[0] = a[9] * x2 + a[7]; t[1] = a[8] * x2 + a[6]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[5]); t[1] += static_cast<V>(a[4]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<11>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[10] * x2 + a[8]); t[1] = static_cast<V>(a[9] * x2 + a[7]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[6]); t[1] += static_cast<V>(a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<12>*) { V x2 = x * x; V t[2]; t[0] = a[11] * x2 + a[9]; t[1] = a[10] * x2 + a[8]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[7]); t[1] += static_cast<V>(a[6]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[5]); t[1] += static_cast<V>(a[4]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<13>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[12] * x2 + a[10]); t[1] = static_cast<V>(a[11] * x2 + a[9]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[8]); t[1] += static_cast<V>(a[7]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[6]); t[1] += static_cast<V>(a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<14>*) { V x2 = x * x; V t[2]; t[0] = a[13] * x2 + a[11]; t[1] = a[12] * x2 + a[10]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[9]); t[1] += static_cast<V>(a[8]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[7]); t[1] += static_cast<V>(a[6]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[5]); t[1] += static_cast<V>(a[4]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<15>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[14] * x2 + a[12]); t[1] = static_cast<V>(a[13] * x2 + a[11]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[10]); t[1] += static_cast<V>(a[9]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[8]); t[1] += static_cast<V>(a[7]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[6]); t[1] += static_cast<V>(a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<16>*) { V x2 = x * x; V t[2]; t[0] = a[15] * x2 + a[13]; t[1] = a[14] * x2 + a[12]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[11]); t[1] += static_cast<V>(a[10]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[9]); t[1] += static_cast<V>(a[8]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[7]); t[1] += static_cast<V>(a[6]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[5]); t[1] += static_cast<V>(a[4]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<17>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[16] * x2 + a[14]); t[1] = static_cast<V>(a[15] * x2 + a[13]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[12]); t[1] += static_cast<V>(a[11]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[10]); t[1] += static_cast<V>(a[9]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[8]); t[1] += static_cast<V>(a[7]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[6]); t[1] += static_cast<V>(a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<18>*) { V x2 = x * x; V t[2]; t[0] = a[17] * x2 + a[15]; t[1] = a[16] * x2 + a[14]; t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[13]); t[1] += static_cast<V>(a[12]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[11]); t[1] += static_cast<V>(a[10]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[9]); t[1] += static_cast<V>(a[8]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[7]); t[1] += static_cast<V>(a[6]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[5]); t[1] += static_cast<V>(a[4]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[3]); t[1] += static_cast<V>(a[2]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[1]); t[1] += static_cast<V>(a[0]); t[0] *= x; return t[0] + t[1]; } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<19>*) { V x2 = x * x; V t[2]; t[0] = static_cast<V>(a[18] * x2 + a[16]); t[1] = static_cast<V>(a[17] * x2 + a[15]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[14]); t[1] += static_cast<V>(a[13]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[12]); t[1] += static_cast<V>(a[11]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[10]); t[1] += static_cast<V>(a[9]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[8]); t[1] += static_cast<V>(a[7]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[6]); t[1] += static_cast<V>(a[5]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[4]); t[1] += static_cast<V>(a[3]); t[0] *= x2; t[1] *= x2; t[0] += static_cast<V>(a[2]); t[1] += static_cast<V>(a[1]); t[0] *= x2; t[0] += static_cast<V>(a[0]); t[1] *= x; return t[0] + t[1]; } }}}} // namespaces #endif // include guard ```
Slum Bala () is a 2008 Indian Kannada-language film directed by Sumana Kittur, starring Duniya Vijay, Shubha Poonja and Shashi Kumar in lead roles. Cast Duniya Vijay as Balakrishna alias Slum Bala Shubha Poonja as Mallige Shashi Kumar as Police Inspector Shantaram Umashree Girija Lokesh B. Suresha as Prasad Nayak Achyuth Kumar Dharma as Bhadravathi Manja Sathya Prakash Dr Banjagere Jayaprakash Production Sumana Kittur narrated the story of Slum Bala to Duniya Vijay, who agreed to star in the film only if Kittur directed it. Music Reception Critical response R G Vijayasarathy of Rediff.com scored the film at 3 out of 5 stars and says "Music director Arjun has done remarkable job both as a composer and back ground scorer. Slum Bala is a must-see film for all those who love good and realistic cinema". Bangalore Mirror wrote "A disappointment for Vijay’s fans is the absence of daring stunts he is known for. The film is a den of thieves. Apart from the mother and the love interest of Bala (played by Shuba Poonja), every other character is either corrupt or has a negative shade. This could have helped if the film was a thriller. But it seems the director was more intent documenting  the life of Slum Bala than provide a quicker narrative of a corrupt society". The New Indian Express wrote "Nayak's friend promises not only to cancel the police order against Bala but also to handover the cable business to the latter. Bala accomplishes the task but circumstances compel Shantaram to eliminate Bala. Slum Bala is a take on politics". References 2000s Kannada-language films 2008 films Films directed by Sumana Kittur
```c++ /* * This file was generated with gl3w_gen.py, part of gl3w * (hosted at path_to_url * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any purpose, commercial or non-commercial, and by any * means. * * In jurisdictions that recognize copyright laws, the author or authors * of this software dedicate any and all copyright interest in the * software to the public domain. We make this dedication for the benefit * of the public at large and to the detriment of our heirs and * successors. We intend this dedication to be an overt act of * relinquishment in perpetuity of all present and future rights to this * software under copyright law. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "gl3w.h" #include <stdlib.h> #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #if defined(_WIN32) #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 // Exclude advanced Windows headers #endif // WIN32_LEAN_AND_MEAN #include <windows.h> static HMODULE libgl; static PROC (__stdcall *wgl_get_proc_address)(LPCSTR); static int open_libgl(void) { libgl = LoadLibraryA("opengl32.dll"); if (!libgl) return GL3W_ERROR_LIBRARY_OPEN; *(void **)(&wgl_get_proc_address) = GetProcAddress(libgl, "wglGetProcAddress"); return GL3W_OK; } static void close_libgl(void) { FreeLibrary(libgl); } static GL3WglProc get_proc(const char *proc) { GL3WglProc res; res = (GL3WglProc)wgl_get_proc_address(proc); if (!res) res = (GL3WglProc)GetProcAddress(libgl, proc); return res; } #elif defined(__APPLE__) #include <dlfcn.h> static void *libgl; static int open_libgl(void) { libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL); if (!libgl) return GL3W_ERROR_LIBRARY_OPEN; return GL3W_OK; } static void close_libgl(void) { dlclose(libgl); } static GL3WglProc get_proc(const char *proc) { GL3WglProc res; *(void **)(&res) = dlsym(libgl, proc); return res; } #else #include <dlfcn.h> static void *libgl; static GL3WglProc (*glx_get_proc_address)(const GLubyte *); static int open_libgl(void) { libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL); if (!libgl) return GL3W_ERROR_LIBRARY_OPEN; *(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB"); return GL3W_OK; } static void close_libgl(void) { dlclose(libgl); } static GL3WglProc get_proc(const char *proc) { GL3WglProc res; res = glx_get_proc_address((const GLubyte *)proc); if (!res) *(void **)(&res) = dlsym(libgl, proc); return res; } #endif static struct { int major, minor; } version; static int parse_version(void) { if (!glGetIntegerv) return GL3W_ERROR_INIT; glGetIntegerv(GL_MAJOR_VERSION, &version.major); glGetIntegerv(GL_MINOR_VERSION, &version.minor); if (version.major < 3) return GL3W_ERROR_OPENGL_VERSION; return GL3W_OK; } static void load_procs(GL3WGetProcAddressProc proc); int gl3wInit(void) { int res; res = open_libgl(); if (res) return res; atexit(close_libgl); return gl3wInit2(get_proc); } int gl3wInit2(GL3WGetProcAddressProc proc) { load_procs(proc); return parse_version(); } int gl3wIsSupported(int major, int minor) { if (major < 3) return 0; if (version.major == major) return version.minor >= minor; return version.major >= major; } GL3WglProc gl3wGetProcAddress(const char *proc) { return get_proc(proc); } static const char *proc_names[] = { "glActiveShaderProgram", "glActiveTexture", "glAttachShader", "glBeginConditionalRender", "glBeginQuery", "glBeginQueryIndexed", "glBeginTransformFeedback", "glBindAttribLocation", "glBindBuffer", "glBindBufferBase", "glBindBufferRange", "glBindBuffersBase", "glBindBuffersRange", "glBindFragDataLocation", "glBindFragDataLocationIndexed", "glBindFramebuffer", "glBindImageTexture", "glBindImageTextures", "glBindProgramPipeline", "glBindRenderbuffer", "glBindSampler", "glBindSamplers", "glBindTexture", "glBindTextureUnit", "glBindTextures", "glBindTransformFeedback", "glBindVertexArray", "glBindVertexBuffer", "glBindVertexBuffers", "glBlendColor", "glBlendEquation", "glBlendEquationSeparate", "glBlendEquationSeparatei", "glBlendEquationi", "glBlendFunc", "glBlendFuncSeparate", "glBlendFuncSeparatei", "glBlendFunci", "glBlitFramebuffer", "glBlitNamedFramebuffer", "glBufferData", "glBufferStorage", "glBufferSubData", "glCheckFramebufferStatus", "glCheckNamedFramebufferStatus", "glClampColor", "glClear", "glClearBufferData", "glClearBufferSubData", "glClearBufferfi", "glClearBufferfv", "glClearBufferiv", "glClearBufferuiv", "glClearColor", "glClearDepth", "glClearDepthf", "glClearNamedBufferData", "glClearNamedBufferSubData", "glClearNamedFramebufferfi", "glClearNamedFramebufferfv", "glClearNamedFramebufferiv", "glClearNamedFramebufferuiv", "glClearStencil", "glClearTexImage", "glClearTexSubImage", "glClientWaitSync", "glClipControl", "glColorMask", "glColorMaski", "glCompileShader", "glCompressedTexImage1D", "glCompressedTexImage2D", "glCompressedTexImage3D", "glCompressedTexSubImage1D", "glCompressedTexSubImage2D", "glCompressedTexSubImage3D", "glCompressedTextureSubImage1D", "glCompressedTextureSubImage2D", "glCompressedTextureSubImage3D", "glCopyBufferSubData", "glCopyImageSubData", "glCopyNamedBufferSubData", "glCopyTexImage1D", "glCopyTexImage2D", "glCopyTexSubImage1D", "glCopyTexSubImage2D", "glCopyTexSubImage3D", "glCopyTextureSubImage1D", "glCopyTextureSubImage2D", "glCopyTextureSubImage3D", "glCreateBuffers", "glCreateFramebuffers", "glCreateProgram", "glCreateProgramPipelines", "glCreateQueries", "glCreateRenderbuffers", "glCreateSamplers", "glCreateShader", "glCreateShaderProgramv", "glCreateTextures", "glCreateTransformFeedbacks", "glCreateVertexArrays", "glCullFace", "glDebugMessageCallback", "glDebugMessageControl", "glDebugMessageInsert", "glDeleteBuffers", "glDeleteFramebuffers", "glDeleteProgram", "glDeleteProgramPipelines", "glDeleteQueries", "glDeleteRenderbuffers", "glDeleteSamplers", "glDeleteShader", "glDeleteSync", "glDeleteTextures", "glDeleteTransformFeedbacks", "glDeleteVertexArrays", "glDepthFunc", "glDepthMask", "glDepthRange", "glDepthRangeArrayv", "glDepthRangeIndexed", "glDepthRangef", "glDetachShader", "glDisable", "glDisableVertexArrayAttrib", "glDisableVertexAttribArray", "glDisablei", "glDispatchCompute", "glDispatchComputeIndirect", "glDrawArrays", "glDrawArraysIndirect", "glDrawArraysInstanced", "glDrawArraysInstancedBaseInstance", "glDrawBuffer", "glDrawBuffers", "glDrawElements", "glDrawElementsBaseVertex", "glDrawElementsIndirect", "glDrawElementsInstanced", "glDrawElementsInstancedBaseInstance", "glDrawElementsInstancedBaseVertex", "glDrawElementsInstancedBaseVertexBaseInstance", "glDrawRangeElements", "glDrawRangeElementsBaseVertex", "glDrawTransformFeedback", "glDrawTransformFeedbackInstanced", "glDrawTransformFeedbackStream", "glDrawTransformFeedbackStreamInstanced", "glEnable", "glEnableVertexArrayAttrib", "glEnableVertexAttribArray", "glEnablei", "glEndConditionalRender", "glEndQuery", "glEndQueryIndexed", "glEndTransformFeedback", "glFenceSync", "glFinish", "glFlush", "glFlushMappedBufferRange", "glFlushMappedNamedBufferRange", "glFramebufferParameteri", "glFramebufferParameteriMESA", "glFramebufferRenderbuffer", "glFramebufferTexture", "glFramebufferTexture1D", "glFramebufferTexture2D", "glFramebufferTexture3D", "glFramebufferTextureLayer", "glFrontFace", "glGenBuffers", "glGenFramebuffers", "glGenProgramPipelines", "glGenQueries", "glGenRenderbuffers", "glGenSamplers", "glGenTextures", "glGenTransformFeedbacks", "glGenVertexArrays", "glGenerateMipmap", "glGenerateTextureMipmap", "glGetActiveAtomicCounterBufferiv", "glGetActiveAttrib", "glGetActiveSubroutineName", "glGetActiveSubroutineUniformName", "glGetActiveSubroutineUniformiv", "glGetActiveUniform", "glGetActiveUniformBlockName", "glGetActiveUniformBlockiv", "glGetActiveUniformName", "glGetActiveUniformsiv", "glGetAttachedShaders", "glGetAttribLocation", "glGetBooleani_v", "glGetBooleanv", "glGetBufferParameteri64v", "glGetBufferParameteriv", "glGetBufferPointerv", "glGetBufferSubData", "glGetCompressedTexImage", "glGetCompressedTextureImage", "glGetCompressedTextureSubImage", "glGetDebugMessageLog", "glGetDoublei_v", "glGetDoublev", "glGetError", "glGetFloati_v", "glGetFloatv", "glGetFragDataIndex", "glGetFragDataLocation", "glGetFramebufferAttachmentParameteriv", "glGetFramebufferParameteriv", "glGetFramebufferParameterivMESA", "glGetGraphicsResetStatus", "glGetInteger64i_v", "glGetInteger64v", "glGetIntegeri_v", "glGetIntegerv", "glGetInternalformati64v", "glGetInternalformativ", "glGetMultisamplefv", "glGetNamedBufferParameteri64v", "glGetNamedBufferParameteriv", "glGetNamedBufferPointerv", "glGetNamedBufferSubData", "glGetNamedFramebufferAttachmentParameteriv", "glGetNamedFramebufferParameteriv", "glGetNamedRenderbufferParameteriv", "glGetObjectLabel", "glGetObjectPtrLabel", "glGetPointerv", "glGetProgramBinary", "glGetProgramInfoLog", "glGetProgramInterfaceiv", "glGetProgramPipelineInfoLog", "glGetProgramPipelineiv", "glGetProgramResourceIndex", "glGetProgramResourceLocation", "glGetProgramResourceLocationIndex", "glGetProgramResourceName", "glGetProgramResourceiv", "glGetProgramStageiv", "glGetProgramiv", "glGetQueryBufferObjecti64v", "glGetQueryBufferObjectiv", "glGetQueryBufferObjectui64v", "glGetQueryBufferObjectuiv", "glGetQueryIndexediv", "glGetQueryObjecti64v", "glGetQueryObjectiv", "glGetQueryObjectui64v", "glGetQueryObjectuiv", "glGetQueryiv", "glGetRenderbufferParameteriv", "glGetSamplerParameterIiv", "glGetSamplerParameterIuiv", "glGetSamplerParameterfv", "glGetSamplerParameteriv", "glGetShaderInfoLog", "glGetShaderPrecisionFormat", "glGetShaderSource", "glGetShaderiv", "glGetString", "glGetStringi", "glGetSubroutineIndex", "glGetSubroutineUniformLocation", "glGetSynciv", "glGetTexImage", "glGetTexLevelParameterfv", "glGetTexLevelParameteriv", "glGetTexParameterIiv", "glGetTexParameterIuiv", "glGetTexParameterfv", "glGetTexParameteriv", "glGetTextureImage", "glGetTextureLevelParameterfv", "glGetTextureLevelParameteriv", "glGetTextureParameterIiv", "glGetTextureParameterIuiv", "glGetTextureParameterfv", "glGetTextureParameteriv", "glGetTextureSubImage", "glGetTransformFeedbackVarying", "glGetTransformFeedbacki64_v", "glGetTransformFeedbacki_v", "glGetTransformFeedbackiv", "glGetUniformBlockIndex", "glGetUniformIndices", "glGetUniformLocation", "glGetUniformSubroutineuiv", "glGetUniformdv", "glGetUniformfv", "glGetUniformiv", "glGetUniformuiv", "glGetVertexArrayIndexed64iv", "glGetVertexArrayIndexediv", "glGetVertexArrayiv", "glGetVertexAttribIiv", "glGetVertexAttribIuiv", "glGetVertexAttribLdv", "glGetVertexAttribPointerv", "glGetVertexAttribdv", "glGetVertexAttribfv", "glGetVertexAttribiv", "glGetnCompressedTexImage", "glGetnTexImage", "glGetnUniformdv", "glGetnUniformfv", "glGetnUniformiv", "glGetnUniformuiv", "glHint", "glInvalidateBufferData", "glInvalidateBufferSubData", "glInvalidateFramebuffer", "glInvalidateNamedFramebufferData", "glInvalidateNamedFramebufferSubData", "glInvalidateSubFramebuffer", "glInvalidateTexImage", "glInvalidateTexSubImage", "glIsBuffer", "glIsEnabled", "glIsEnabledi", "glIsFramebuffer", "glIsProgram", "glIsProgramPipeline", "glIsQuery", "glIsRenderbuffer", "glIsSampler", "glIsShader", "glIsSync", "glIsTexture", "glIsTransformFeedback", "glIsVertexArray", "glLineWidth", "glLinkProgram", "glLogicOp", "glMapBuffer", "glMapBufferRange", "glMapNamedBuffer", "glMapNamedBufferRange", "glMemoryBarrier", "glMemoryBarrierByRegion", "glMinSampleShading", "glMultiDrawArrays", "glMultiDrawArraysIndirect", "glMultiDrawArraysIndirectCount", "glMultiDrawElements", "glMultiDrawElementsBaseVertex", "glMultiDrawElementsIndirect", "glMultiDrawElementsIndirectCount", "glNamedBufferData", "glNamedBufferStorage", "glNamedBufferSubData", "glNamedFramebufferDrawBuffer", "glNamedFramebufferDrawBuffers", "glNamedFramebufferParameteri", "glNamedFramebufferReadBuffer", "glNamedFramebufferRenderbuffer", "glNamedFramebufferTexture", "glNamedFramebufferTextureLayer", "glNamedRenderbufferStorage", "glNamedRenderbufferStorageMultisample", "glObjectLabel", "glObjectPtrLabel", "glPatchParameterfv", "glPatchParameteri", "glPauseTransformFeedback", "glPixelStoref", "glPixelStorei", "glPointParameterf", "glPointParameterfv", "glPointParameteri", "glPointParameteriv", "glPointSize", "glPolygonMode", "glPolygonOffset", "glPolygonOffsetClamp", "glPopDebugGroup", "glPrimitiveRestartIndex", "glProgramBinary", "glProgramParameteri", "glProgramUniform1d", "glProgramUniform1dv", "glProgramUniform1f", "glProgramUniform1fv", "glProgramUniform1i", "glProgramUniform1iv", "glProgramUniform1ui", "glProgramUniform1uiv", "glProgramUniform2d", "glProgramUniform2dv", "glProgramUniform2f", "glProgramUniform2fv", "glProgramUniform2i", "glProgramUniform2iv", "glProgramUniform2ui", "glProgramUniform2uiv", "glProgramUniform3d", "glProgramUniform3dv", "glProgramUniform3f", "glProgramUniform3fv", "glProgramUniform3i", "glProgramUniform3iv", "glProgramUniform3ui", "glProgramUniform3uiv", "glProgramUniform4d", "glProgramUniform4dv", "glProgramUniform4f", "glProgramUniform4fv", "glProgramUniform4i", "glProgramUniform4iv", "glProgramUniform4ui", "glProgramUniform4uiv", "glProgramUniformMatrix2dv", "glProgramUniformMatrix2fv", "glProgramUniformMatrix2x3dv", "glProgramUniformMatrix2x3fv", "glProgramUniformMatrix2x4dv", "glProgramUniformMatrix2x4fv", "glProgramUniformMatrix3dv", "glProgramUniformMatrix3fv", "glProgramUniformMatrix3x2dv", "glProgramUniformMatrix3x2fv", "glProgramUniformMatrix3x4dv", "glProgramUniformMatrix3x4fv", "glProgramUniformMatrix4dv", "glProgramUniformMatrix4fv", "glProgramUniformMatrix4x2dv", "glProgramUniformMatrix4x2fv", "glProgramUniformMatrix4x3dv", "glProgramUniformMatrix4x3fv", "glProvokingVertex", "glPushDebugGroup", "glQueryCounter", "glReadBuffer", "glReadPixels", "glReadnPixels", "glReleaseShaderCompiler", "glRenderbufferStorage", "glRenderbufferStorageMultisample", "glResumeTransformFeedback", "glSampleCoverage", "glSampleMaski", "glSamplerParameterIiv", "glSamplerParameterIuiv", "glSamplerParameterf", "glSamplerParameterfv", "glSamplerParameteri", "glSamplerParameteriv", "glScissor", "glScissorArrayv", "glScissorIndexed", "glScissorIndexedv", "glShaderBinary", "glShaderSource", "glShaderStorageBlockBinding", "glSpecializeShader", "glStencilFunc", "glStencilFuncSeparate", "glStencilMask", "glStencilMaskSeparate", "glStencilOp", "glStencilOpSeparate", "glTexBuffer", "glTexBufferRange", "glTexImage1D", "glTexImage2D", "glTexImage2DMultisample", "glTexImage3D", "glTexImage3DMultisample", "glTexParameterIiv", "glTexParameterIuiv", "glTexParameterf", "glTexParameterfv", "glTexParameteri", "glTexParameteriv", "glTexStorage1D", "glTexStorage2D", "glTexStorage2DMultisample", "glTexStorage3D", "glTexStorage3DMultisample", "glTexSubImage1D", "glTexSubImage2D", "glTexSubImage3D", "glTextureBarrier", "glTextureBuffer", "glTextureBufferRange", "glTextureParameterIiv", "glTextureParameterIuiv", "glTextureParameterf", "glTextureParameterfv", "glTextureParameteri", "glTextureParameteriv", "glTextureStorage1D", "glTextureStorage2D", "glTextureStorage2DMultisample", "glTextureStorage3D", "glTextureStorage3DMultisample", "glTextureSubImage1D", "glTextureSubImage2D", "glTextureSubImage3D", "glTextureView", "glTransformFeedbackBufferBase", "glTransformFeedbackBufferRange", "glTransformFeedbackVaryings", "glUniform1d", "glUniform1dv", "glUniform1f", "glUniform1fv", "glUniform1i", "glUniform1iv", "glUniform1ui", "glUniform1uiv", "glUniform2d", "glUniform2dv", "glUniform2f", "glUniform2fv", "glUniform2i", "glUniform2iv", "glUniform2ui", "glUniform2uiv", "glUniform3d", "glUniform3dv", "glUniform3f", "glUniform3fv", "glUniform3i", "glUniform3iv", "glUniform3ui", "glUniform3uiv", "glUniform4d", "glUniform4dv", "glUniform4f", "glUniform4fv", "glUniform4i", "glUniform4iv", "glUniform4ui", "glUniform4uiv", "glUniformBlockBinding", "glUniformMatrix2dv", "glUniformMatrix2fv", "glUniformMatrix2x3dv", "glUniformMatrix2x3fv", "glUniformMatrix2x4dv", "glUniformMatrix2x4fv", "glUniformMatrix3dv", "glUniformMatrix3fv", "glUniformMatrix3x2dv", "glUniformMatrix3x2fv", "glUniformMatrix3x4dv", "glUniformMatrix3x4fv", "glUniformMatrix4dv", "glUniformMatrix4fv", "glUniformMatrix4x2dv", "glUniformMatrix4x2fv", "glUniformMatrix4x3dv", "glUniformMatrix4x3fv", "glUniformSubroutinesuiv", "glUnmapBuffer", "glUnmapNamedBuffer", "glUseProgram", "glUseProgramStages", "glValidateProgram", "glValidateProgramPipeline", "glVertexArrayAttribBinding", "glVertexArrayAttribFormat", "glVertexArrayAttribIFormat", "glVertexArrayAttribLFormat", "glVertexArrayBindingDivisor", "glVertexArrayElementBuffer", "glVertexArrayVertexBuffer", "glVertexArrayVertexBuffers", "glVertexAttrib1d", "glVertexAttrib1dv", "glVertexAttrib1f", "glVertexAttrib1fv", "glVertexAttrib1s", "glVertexAttrib1sv", "glVertexAttrib2d", "glVertexAttrib2dv", "glVertexAttrib2f", "glVertexAttrib2fv", "glVertexAttrib2s", "glVertexAttrib2sv", "glVertexAttrib3d", "glVertexAttrib3dv", "glVertexAttrib3f", "glVertexAttrib3fv", "glVertexAttrib3s", "glVertexAttrib3sv", "glVertexAttrib4Nbv", "glVertexAttrib4Niv", "glVertexAttrib4Nsv", "glVertexAttrib4Nub", "glVertexAttrib4Nubv", "glVertexAttrib4Nuiv", "glVertexAttrib4Nusv", "glVertexAttrib4bv", "glVertexAttrib4d", "glVertexAttrib4dv", "glVertexAttrib4f", "glVertexAttrib4fv", "glVertexAttrib4iv", "glVertexAttrib4s", "glVertexAttrib4sv", "glVertexAttrib4ubv", "glVertexAttrib4uiv", "glVertexAttrib4usv", "glVertexAttribBinding", "glVertexAttribDivisor", "glVertexAttribFormat", "glVertexAttribI1i", "glVertexAttribI1iv", "glVertexAttribI1ui", "glVertexAttribI1uiv", "glVertexAttribI2i", "glVertexAttribI2iv", "glVertexAttribI2ui", "glVertexAttribI2uiv", "glVertexAttribI3i", "glVertexAttribI3iv", "glVertexAttribI3ui", "glVertexAttribI3uiv", "glVertexAttribI4bv", "glVertexAttribI4i", "glVertexAttribI4iv", "glVertexAttribI4sv", "glVertexAttribI4ubv", "glVertexAttribI4ui", "glVertexAttribI4uiv", "glVertexAttribI4usv", "glVertexAttribIFormat", "glVertexAttribIPointer", "glVertexAttribL1d", "glVertexAttribL1dv", "glVertexAttribL2d", "glVertexAttribL2dv", "glVertexAttribL3d", "glVertexAttribL3dv", "glVertexAttribL4d", "glVertexAttribL4dv", "glVertexAttribLFormat", "glVertexAttribLPointer", "glVertexAttribP1ui", "glVertexAttribP1uiv", "glVertexAttribP2ui", "glVertexAttribP2uiv", "glVertexAttribP3ui", "glVertexAttribP3uiv", "glVertexAttribP4ui", "glVertexAttribP4uiv", "glVertexAttribPointer", "glVertexBindingDivisor", "glViewport", "glViewportArrayv", "glViewportIndexedf", "glViewportIndexedfv", "glWaitSync", }; union GL3WProcs gl3wProcs; static void load_procs(GL3WGetProcAddressProc proc) { size_t i; for (i = 0; i < ARRAY_SIZE(proc_names); i++) gl3wProcs.ptr[i] = proc(proc_names[i]); } ```
```c++ // // Use, modification, and distribution is subject to the Boost Software // path_to_url // // See path_to_url for documentation. // // You are welcome to contact the author at: // akrzemi1@gmail.com // #include "boost/optional.hpp" #include "boost/core/ignore_unused.hpp" #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES // // THIS TEST SHOULD FAIL TO COMPILE // void optional_reference__test_no_init_from_Urefref() { boost::optional<const int&> opt = long(3); boost::ignore_unused(opt); } #else # error "Test skipped. This cannot be implemented w/o rvalue references." #endif ```
```php <?php /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the */ namespace Google\Service\CloudMachineLearningEngine\Resource; use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1ListModelsResponse; use Google\Service\CloudMachineLearningEngine\GoogleCloudMlV1Model; use Google\Service\CloudMachineLearningEngine\GoogleIamV1Policy; use Google\Service\CloudMachineLearningEngine\GoogleIamV1SetIamPolicyRequest; use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsRequest; use Google\Service\CloudMachineLearningEngine\GoogleIamV1TestIamPermissionsResponse; use Google\Service\CloudMachineLearningEngine\GoogleLongrunningOperation; /** * The "models" collection of methods. * Typical usage is: * <code> * $mlService = new Google\Service\CloudMachineLearningEngine(...); * $models = $mlService->projects_models; * </code> */ class ProjectsModels extends \Google\Service\Resource { /** * Creates a model which will later contain one or more versions. You must add * at least one version before you can request predictions from the model. Add * versions by calling projects.models.versions.create. (models.create) * * @param string $parent Required. The project name. * @param GoogleCloudMlV1Model $postBody * @param array $optParams Optional parameters. * @return GoogleCloudMlV1Model * @throws \Google\Service\Exception */ public function create($parent, GoogleCloudMlV1Model $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleCloudMlV1Model::class); } /** * Deletes a model. You can only delete a model if there are no versions in it. * You can delete versions by calling projects.models.versions.delete. * (models.delete) * * @param string $name Required. The name of the model. * @param array $optParams Optional parameters. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], GoogleLongrunningOperation::class); } /** * Gets information about a model, including its name, the description (if set), * and the default version (if at least one version of the model has been * deployed). (models.get) * * @param string $name Required. The name of the model. * @param array $optParams Optional parameters. * @return GoogleCloudMlV1Model * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('get', [$params], GoogleCloudMlV1Model::class); } /** * Gets the access control policy for a resource. Returns an empty policy if the * resource exists and does not have a policy set. (models.getIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being * requested. See [Resource * names](path_to_url for the * appropriate value for this field. * @param array $optParams Optional parameters. * * @opt_param int options.requestedPolicyVersion Optional. The maximum policy * version that will be used to format the policy. Valid values are 0, 1, and 3. * Requests specifying an invalid value will be rejected. Requests for policies * with any conditional role bindings must specify version 3. Policies with no * conditional role bindings may specify any valid value or leave the field * unset. The policy in the response might use the policy version that you * specified, or it might use a lower policy version. For example, if you * specify version 3, but the policy has no conditional role bindings, the * response uses version 1. To learn which resources support conditions in their * IAM policies, see the [IAM * documentation](path_to_url * policies). * @return GoogleIamV1Policy * @throws \Google\Service\Exception */ public function getIamPolicy($resource, $optParams = []) { $params = ['resource' => $resource]; $params = array_merge($params, $optParams); return $this->call('getIamPolicy', [$params], GoogleIamV1Policy::class); } /** * Lists the models in a project. Each project can contain multiple models, and * each model can have multiple versions. If there are no models that match the * request parameters, the list request returns an empty response body: {}. * (models.listProjectsModels) * * @param string $parent Required. The name of the project whose models are to * be listed. * @param array $optParams Optional parameters. * * @opt_param string filter Optional. Specifies the subset of models to * retrieve. * @opt_param int pageSize Optional. The number of models to retrieve per "page" * of results. If there are more remaining results than this number, the * response message will contain a valid value in the `next_page_token` field. * The default value is 20, and the maximum page size is 100. * @opt_param string pageToken Optional. A page token to request the next page * of results. You get the token from the `next_page_token` field of the * response from the previous call. * @return GoogleCloudMlV1ListModelsResponse * @throws \Google\Service\Exception */ public function listProjectsModels($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudMlV1ListModelsResponse::class); } /** * Updates a specific model resource. Currently the only supported fields to * update are `description` and `default_version.name`. (models.patch) * * @param string $name Required. The project name. * @param GoogleCloudMlV1Model $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. Specifies the path, relative to * `Model`, of the field to update. For example, to change the description of a * model to "foo" and set its default version to "version_1", the `update_mask` * parameter would be specified as `description`, `default_version.name`, and * the `PATCH` request body would specify the new value, as follows: { * "description": "foo", "defaultVersion": { "name":"version_1" } } Currently * the supported update masks are `description` and `default_version.name`. * @return GoogleLongrunningOperation * @throws \Google\Service\Exception */ public function patch($name, GoogleCloudMlV1Model $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('patch', [$params], GoogleLongrunningOperation::class); } /** * Sets the access control policy on the specified resource. Replaces any * existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and * `PERMISSION_DENIED` errors. (models.setIamPolicy) * * @param string $resource REQUIRED: The resource for which the policy is being * specified. See [Resource * names](path_to_url for the * appropriate value for this field. * @param GoogleIamV1SetIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return GoogleIamV1Policy * @throws \Google\Service\Exception */ public function setIamPolicy($resource, GoogleIamV1SetIamPolicyRequest $postBody, $optParams = []) { $params = ['resource' => $resource, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('setIamPolicy', [$params], GoogleIamV1Policy::class); } /** * Returns permissions that a caller has on the specified resource. If the * resource does not exist, this will return an empty set of permissions, not a * `NOT_FOUND` error. Note: This operation is designed to be used for building * permission-aware UIs and command-line tools, not for authorization checking. * This operation may "fail open" without warning. (models.testIamPermissions) * * @param string $resource REQUIRED: The resource for which the policy detail is * being requested. See [Resource * names](path_to_url for the * appropriate value for this field. * @param GoogleIamV1TestIamPermissionsRequest $postBody * @param array $optParams Optional parameters. * @return GoogleIamV1TestIamPermissionsResponse * @throws \Google\Service\Exception */ public function testIamPermissions($resource, GoogleIamV1TestIamPermissionsRequest $postBody, $optParams = []) { $params = ['resource' => $resource, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('testIamPermissions', [$params], GoogleIamV1TestIamPermissionsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsModels::class, your_sha256_hashs'); ```
```objective-c // // // path_to_url // #ifndef PXR_USD_USD_PRIM_RANGE_H #define PXR_USD_USD_PRIM_RANGE_H #include "pxr/pxr.h" #include "pxr/usd/usd/api.h" #include "pxr/usd/usd/common.h" #include "pxr/usd/usd/prim.h" #include "pxr/usd/usd/primFlags.h" #include <vector> #include <iterator> PXR_NAMESPACE_OPEN_SCOPE /// \class UsdPrimRange /// /// An forward-iterable range that traverses a subtree of prims rooted at a /// given prim in depth-first order. /// /// In addition to depth-first order, UsdPrimRange provides the optional ability /// to traverse in depth-first pre- and post-order wher prims appear twice in /// the range; first before all descendants and then again immediately after all /// descendants. This is useful for maintaining state associated with subtrees, /// in a stack-like fashion. See UsdPrimRange::iterator::IsPostVisit() to /// detect when an iterator is visiting a prim for the second time. /// /// There are several constructors providing different levels of /// configurability; ultimately, one can provide a prim predicate for a custom /// iteration, just as one would use UsdPrim::GetFilteredChildren() in a custom /// recursion. /// /// Why would one want to use a UsdPrimRange rather than just iterating /// over the results of UsdPrim::GetFilteredDescendants() ? Primarily, if /// one of the following applies: /// \li You need to perform pre-and-post-order processing /// \li You may want to prune sub-trees from processing (see UsdPrimRange::iterator::PruneChildren()) /// \li You want to treat the root prim itself uniformly with its /// descendents (GetFilteredDescendants() will not return the root prim itself, /// while UsdPrimRange will - see UsdPrimRange::Stage for an exception). /// /// <b>Using UsdPrimRange in C++</b> /// /// UsdPrimRange provides standard container-like semantics. For example: /// \code /// // simple range-for iteration /// for (UsdPrim prim: UsdPrimRange(rootPrim)) { /// ProcessPrim(prim); /// } /// /// // using stl algorithms /// std::vector<UsdPrim> meshes; /// auto range = stage->Traverse(); /// std::copy_if(range.begin(), range.end(), std::back_inserter(meshes), /// [](UsdPrim const &) { return prim.IsA<UsdGeomMesh>(); }); /// /// // iterator-based iterating, with subtree pruning /// UsdPrimRange range(rootPrim); /// for (auto iter = range.begin(); iter != range.end(); ++iter) { /// if (UsdModelAPI(*iter).GetKind() == KindTokens->component) { /// iter.PruneChildren(); /// } /// else { /// nonComponents.push_back(*iter); /// } /// } /// \endcode /// /// <b>Using Usd.PrimRange in python</b> /// /// The python wrapping for PrimRange is python-iterable, so it can /// used directly as the object of a "for x in..." clause; however in that /// usage one loses access to PrimRange methods such as PruneChildren() and /// IsPostVisit(). Simply create the iterator outside the loop to overcome /// this limitation. Finally, in python, prim predicates must be combined /// with bit-wise operators rather than logical operators because the latter /// are not overridable. /// \code{.py} /// # simple iteration /// for prim in Usd.PrimRange(rootPrim): /// ProcessPrim(prim) /// /// # filtered range using iterator to invoke iterator methods /// it = iter(Usd.PrimRange.Stage(stage, Usd.PrimIsLoaded & ~Usd.PrimIsAbstract)) /// for prim in it: /// if Usd.ModelAPI(prim).GetKind() == Kind.Tokens.component: /// it.PruneChildren() /// else: /// nonComponents.append(prim) /// \endcode /// /// Finally, since iterators in python are not directly dereferencable, we /// provide the \em python \em only methods GetCurrentPrim() and IsValid(), /// documented in the python help system. /// class UsdPrimRange { public: class iterator; /// \class EndSentinel /// /// This class lets us represent past-the-end without the full weight of an /// iterator. class EndSentinel { private: friend class UsdPrimRange; explicit EndSentinel(UsdPrimRange const *range) : _range(range) {} friend class UsdPrimRange::iterator; UsdPrimRange const *_range; }; /// \class iterator /// /// A forward iterator into a UsdPrimRange. Iterators are valid for the /// range they were obtained from. An iterator \em i obtained from a range /// \em r is not valid for a range \em c copied from \em r. class iterator { using _UnderlyingIterator = Usd_PrimDataConstPtr; class _PtrProxy { public: UsdPrim* operator->() { return &_prim; } private: friend class iterator; explicit _PtrProxy(const UsdPrim& prim) : _prim(prim) {} UsdPrim _prim; }; public: using iterator_category = std::forward_iterator_tag; using value_type = UsdPrim; using reference = UsdPrim; using pointer = _PtrProxy; using difference_type = std::ptrdiff_t; iterator() = default; /// Allow implicit conversion from EndSentinel. iterator(EndSentinel e) : _underlyingIterator(e._range->_end) , _range(e._range) {} reference operator*() const { return dereference(); } pointer operator->() const { return pointer(dereference()); } iterator& operator++() { increment(); return *this; } iterator operator++(int) { iterator result = *this; increment(); return result; } /// Return true if the iterator points to a prim visited the second time /// (in post order) for a pre- and post-order iterator, false otherwise. bool IsPostVisit() const { return _isPost; } /// Behave as if the current prim has no children when next advanced. /// Issue an error if this is a pre- and post-order iterator that /// IsPostVisit(). USD_API void PruneChildren(); /// Return true if this iterator is equivalent to \p other. inline bool operator==(iterator const &other) const { return _range == other._range && _underlyingIterator == other._underlyingIterator && _proxyPrimPath == other._proxyPrimPath && _depth == other._depth && _pruneChildrenFlag == other._pruneChildrenFlag && _isPost == other._isPost; } /// Return true if this iterator is equivalent to \p other. inline bool operator==(EndSentinel const &other) const { return _range == other._range && _underlyingIterator == _range->_end; } /// Return true if this iterator is not equivalent to \p other. inline bool operator!=(iterator const &other) const { return !(*this == other); } /// Return true if this iterator is not equivalent to \p other. inline bool operator!=(EndSentinel const &other) const { return !(*this == other); } private: friend class UsdPrimRange; iterator(UsdPrimRange const *range, Usd_PrimDataConstPtr prim, SdfPath proxyPrimPath, unsigned int depth) : _underlyingIterator(prim) , _range(range) , _proxyPrimPath(proxyPrimPath) , _depth(depth) {} USD_API void increment(); inline reference dereference() const { return UsdPrim(_underlyingIterator, _proxyPrimPath); } _UnderlyingIterator _underlyingIterator = nullptr; UsdPrimRange const *_range = nullptr; SdfPath _proxyPrimPath; unsigned int _depth = 0; // True when the client has asked that the next increment skips the // children of the current prim. bool _pruneChildrenFlag = false; // True when we're on the post-side of a prim. Unused if // _range->_postOrder is false. bool _isPost = false; }; using const_iterator = iterator; UsdPrimRange() : _begin(nullptr) , _end(nullptr) , _initDepth(0) , _postOrder(false) {} /// Construct a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting prims that pass the default predicate (as /// defined by #UsdPrimDefaultPredicate). explicit UsdPrimRange(const UsdPrim &start) { Usd_PrimDataConstPtr p = get_pointer(start._Prim()); _Init(p, p ? p->GetNextPrim() : nullptr, start._ProxyPrimPath()); } /// Construct a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting prims that pass \p predicate. UsdPrimRange(const UsdPrim &start, const Usd_PrimFlagsPredicate &predicate) { Usd_PrimDataConstPtr p = get_pointer(start._Prim()); _Init(p, p ? p->GetNextPrim() : nullptr, start._ProxyPrimPath(), predicate); } /// Create a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting prims that pass the default predicate (as /// defined by #UsdPrimDefaultPredicate) with pre- and post-order /// visitation. /// /// Pre- and post-order visitation means that each prim appears /// twice in the range; not only prior to all its descendants as with an /// ordinary traversal but also immediately following its descendants. This /// lets client code maintain state for subtrees. See /// UsdPrimRange::iterator::IsPostVisit(). static UsdPrimRange PreAndPostVisit(const UsdPrim &start) { UsdPrimRange result(start); result._postOrder = true; return result; } /// Create a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting prims that pass \p predicate with pre- and /// post-order visitation. /// /// Pre- and post-order visitation means that each prim appears /// twice in the range; not only prior to all its descendants as with an /// ordinary traversal but also immediately following its descendants. This /// lets client code maintain state for subtrees. See /// UsdPrimRange::iterator::IsPostVisit(). static UsdPrimRange PreAndPostVisit(const UsdPrim &start, const Usd_PrimFlagsPredicate &predicate) { UsdPrimRange result(start, predicate); result._postOrder = true; return result; } /// Construct a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting all prims (including deactivated, undefined, /// and abstract prims). static UsdPrimRange AllPrims(const UsdPrim &start) { return UsdPrimRange(start, UsdPrimAllPrimsPredicate); } /// Construct a PrimRange that traverses the subtree rooted at \p start in /// depth-first order, visiting all prims (including deactivated, undefined, /// and abstract prims) with pre- and post-order visitation. /// /// Pre- and post-order visitation means that each prim appears /// twice in the range; not only prior to all its descendants as with an /// ordinary traversal but also immediately following its descendants. This /// lets client code maintain state for subtrees. See /// UsdPrimRange::iterator::IsPostVisit(). static UsdPrimRange AllPrimsPreAndPostVisit(const UsdPrim &start) { return PreAndPostVisit(start, UsdPrimAllPrimsPredicate); } /// Create a PrimRange that traverses all the prims on \p stage, and /// visits those that pass the default predicate (as defined by /// #UsdPrimDefaultPredicate). USD_API static UsdPrimRange Stage(const UsdStagePtr &stage, const Usd_PrimFlagsPredicate &predicate = UsdPrimDefaultPredicate); /// Return an iterator to the start of this range. iterator begin() const { return iterator(this, _begin, _initProxyPrimPath, _initDepth); } /// Return a const_iterator to the start of this range. const_iterator cbegin() const { return iterator(this, _begin, _initProxyPrimPath, _initDepth); } /// Return the first element of this range. The range must not be empty(). UsdPrim front() const { return *begin(); } // XXX C++11 & 14 require that c/end() return the same type as c/begin() for // range-based-for loops to work correctly. C++17 relaxes that requirement. // Change the return type to EndSentinel once we are on C++17. /// Return the past-the-end iterator for this range. iterator end() const { return EndSentinel(this); } /// Return the past-the-end const_iterator for this range. const_iterator cend() const { return EndSentinel(this); } /// Modify this range by advancing the beginning by one. The range must not /// be empty, and the range must not be a pre- and post-order range. void increment_begin() { set_begin(++begin()); } /// Set the start of this range to \p newBegin. The \p newBegin iterator /// must be within this range's begin() and end(), and must not have /// UsdPrimRange::iterator::IsPostVisit() be true. void set_begin(iterator const &newBegin) { TF_VERIFY(!newBegin.IsPostVisit()); _begin = newBegin._underlyingIterator; _initProxyPrimPath = newBegin._proxyPrimPath; _initDepth = newBegin._depth; } /// Return true if this range contains no prims, false otherwise. bool empty() const { return begin() == end(); } /// Return true if this range contains one or more prims, false otherwise. explicit operator bool() const { return !empty(); } /// Return true if this range is equivalent to \p other. bool operator==(UsdPrimRange const &other) const { return this == &other || (_begin == other._begin && _end == other._end && _initProxyPrimPath == other._initProxyPrimPath && _predicate == other._predicate && _postOrder == other._postOrder && _initDepth == other._initDepth); } /// Return true if this range is not equivalent to \p other. bool operator!=(UsdPrimRange const &other) const { return !(*this == other); } private: UsdPrimRange(Usd_PrimDataConstPtr begin, Usd_PrimDataConstPtr end, const SdfPath& proxyPrimPath, const Usd_PrimFlagsPredicate &predicate = UsdPrimDefaultPredicate) { _Init(begin, end, proxyPrimPath, predicate); } //////////////////////////////////////////////////////////////////////// // Helpers. void _Init(const Usd_PrimData *first, const Usd_PrimData *last, const SdfPath &proxyPrimPath, const Usd_PrimFlagsPredicate &predicate = UsdPrimDefaultPredicate) { _begin = first; _end = last; _initProxyPrimPath = proxyPrimPath; _predicate = _begin ? Usd_CreatePredicateForTraversal(_begin, proxyPrimPath, predicate) : predicate; _postOrder = false; _initDepth = 0; // Advance to the first prim that passes the predicate. iterator b = begin(); if (b._underlyingIterator != _end && !Usd_EvalPredicate(_predicate, b._underlyingIterator, proxyPrimPath)) { b._pruneChildrenFlag = true; set_begin(++b); } } //////////////////////////////////////////////////////////////////////// // Data members. // These members are fixed for the life of the range. Usd_PrimDataConstPtr _begin; Usd_PrimDataConstPtr _end; SdfPath _initProxyPrimPath; Usd_PrimFlagsPredicate _predicate; unsigned int _initDepth; bool _postOrder; }; PXR_NAMESPACE_CLOSE_SCOPE #endif // PXR_USD_USD_PRIM_RANGE_H ```
USS Mayflower (PY-1) (later as USCGC Mayflower (WPG-183)) was a , motor vessel originally built as a private yacht that went on to serve in a variety of military, governmental, and commercial roles. She had an extremely long and diverse career. She served as a private yacht, merchant ship and as the presidential yacht for five United States presidents (T. Roosevelt, Taft, Wilson, Harding and Coolidge). She also served as a warship, and was possibly the only US Navy ship (certainly one of the very few) to have been in active commissioned service during the Spanish–American War, World War I and World War II. She was also one of the few ships to have served in both the United States and Israeli navies. Private yacht Mayflower was launched in 1896 by J. and G. Thompson, of Clydebank, Scotland, as a luxurious steam yacht for millionaire Ogden Goelet, who died on board her in August 1897. Her sister ship, the Nahma, said to be almost identical, although being longer, was built at the same time and in the same yard for Goelet's brother, Robert Goelet, later became . The following year she was acquired by the United States Navy, the second ship to have the name Mayflower. Spanish–American War With the Spanish–American War requiring that the Navy expand rapidly, she was purchased by the Navy from Goelet's estate and commissioned at the New York Navy Yard as Mayflower, on 24 March 1898. Mayflower joined Admiral William T. Sampson's squadron at Key West, Florida, on 20 April. Two days later, the squadron sailed to blockade Havana, Cuba. En route, Mayflower captured the Spanish schooner Santiago Apostol. She also took a number of fishing boats and coastal trading vessels. On 11 May, she boarded a large British merchant steamer, which also carried the name Mayflower, and sent the blockade runner to the United States under a prize crew. On 14 May, Alfonso led two Spanish gunboats out of the harbor hoping to break through the American blockade. Mayflowers guns engaged the Spanish warships and drove them back to shelter under the guns of Morro Castle. For the rest of the war, Mayflower guarded the ports of Santiago de Cuba and Cienfuegos. Caribbean Early in 1899, the yacht steamed to New York, where she decommissioned on 2 February, to be fitted out for special service in Puerto Rican waters. She recommissioned on 15 June 1900. At San Juan, she served as headquarters for the government of the island being formed by the first American Governor Charles H. Allen. In 1902, Mayflower twice served as Admiral George Dewey's flagship. In November 1903, Rear Admiral Joseph Coghlan, flew his flag when off Panama, during the revolution which established Panamanian independence and pointed toward the construction of the Panama Canal. She sailed to Europe in the summer of 1904, and in the fall carried Secretary of War William Howard Taft, on an inspection tour of the West Indies. Mayflower was decommissioned at New York, on 1 November 1904, for conversion to a presidential yacht. US presidential yacht Recommissioned on 25 July 1905, with Commander Cameron Winslow, in command, she immediately sailed for Oyster Bay, Long Island, New York, to prepare for the peace conference which ended the Russo-Japanese War. President Theodore Roosevelt, introduced the Russian and Japanese delegations on board Mayflower, on 5 August. The ship continued to play a prominent role in support of the negotiations which won Roosevelt the Nobel Peace Prize. After duty as a dispatch boat protecting American interests in Santo Domingo, in 1906, Mayflower served as presidential yacht until 1929. On 22 July 1908, she collided with the American 211-grt schooner Menawa, in Long Island Sound; Menawa was lost, but all six people aboard her survived. Mayflower was the scene of many diplomatic and social events during her years as the presidential yacht. Many members of the world's royal families visited the yacht and numerous persons of great prominence signed her guestbook. President Woodrow Wilson, selected Mayflower as the setting for much of his courtship of Edith Bolling Galt. One of Herbert Hoover's early acts as president was to dispense with Mayflower as an economy measure, saving upkeep costs of $300,000 per year, . She was decommissioned at the Philadelphia Navy Yard, on 22 March 1929, and her Filipino stewards and much of her furniture were transferred to the presidential retreat at Rapidan Camp. Placed up for auction, there were no bidders, and the ship was recommissioned for military use. During this overhaul at the Philadelphia Navy Yard, an intense fire broke out on 24 January 1931. So much water was pumped into her, that she sank and had to be raised. Private ownership The yacht was sold on 19 October 1931, to Leo P. Coe, agent for Frank P. Parish, a wealthy financier known as "The boy wizard of LaSalle Street" (Chicago's Wall Street). The following year while he was having the ship restored to her original luxurious splendor, by Henry J. Gielow Inc., of New York City, Parish's fortunes turned forcing him to sell the yacht shortly before he fled from the country to escape from prosecution and elude irate investors. During the Depression years, a number of successive owners tried to promote a wide variety of projects for the ship, including use in the South America coastal trade, restoration as a historic relic, use as a floating dance salon, and even sale to the Japanese Government to be scrapped as Japan sought still to strengthen her war machine. However, a complex web of legal difficulties, a shortage of money, and marginal business conditions frustrated these enterprises while the ship idled in Atlantic ports from New York to Jacksonville, Florida, awaiting an opportunity for future service. Service in USCG and US Navy during World War II After the US entered World War II, the War Shipping Administration purchased Mayflower from Broadfoot Iron Works Inc., Wilmington, North Carolina, on 31 July 1942, and renamed her Butte. Transferred to the Coast Guard on 6 September 1943, the ship was recommissioned as USCGC Mayflower (WPG-183) on 19 October 1943. She patrolled the Atlantic coast guarding against German U-boats and escorted coastal shipping besides serving as a radar training ship at Norfolk and Boston. As a commercial vessel Decommissioned on 1 July 1946, Mayflower was sold at Baltimore, to Frank M. Shaw, on 8 January 1947, for use in the Arctic as a sealer. However, while sailing for sealing waters between Greenland and Labrador, early in March, Mayflower was damaged by fire off Point Lookout, and forced to return to Baltimore. Collins Distributors Inc., purchased the ship early in 1948, installed new boilers in her at New York, and documented her as SS Malla, under the Panamanian flag. She was subsequently fitted out at Genoa, Italy, ostensibly for coastwise trade in the Mediterranean. One of her last voyages, in 1948, she was contracted to sail Jewish refugees to the port of Haifa, Israel. After sailing secretly from Marseilles, she arrived at Haifa, 3 September. Most of those on board were former passengers of the ill-fated Exodus, which had been turned back from Palestine, the previous summer. Malla was purchased by Israel in 1950 and renamed the INS Maoz (K 24). She served as a training ship with the Israeli Navy until she was broken up in 1955. Awards Sampson Medal (1898) Spanish Campaign Medal (1898) World War I Victory Medal (1917–1918) American Campaign Medal (1942–1946) World War II Victory Medal (1942–1946) References Bibliography External links Speaking of Pictures ... These Show the Life & Times of Famous U.S.S. Mayflower—LIFE Oct 11, 1943 navsource.org: USS Mayflower hazegray.org: USS Mayflower Naval Historical Center: USS Mayflower Ships built on the River Clyde 1896 ships Patrol vessels of the United States Navy Presidential yachts of the United States Ships of the United States Coast Guard World War I auxiliary ships of the United States World War II patrol vessels of the United States Spanish–American War auxiliary ships of the United States Steam yachts Maritime incidents in 1908
```objective-c /*your_sha256_hash--------- * * generic_xlog.h * Generic xlog API definition. * * * * src/include/access/generic_xlog.h * *your_sha256_hash--------- */ #ifndef GENERIC_XLOG_H #define GENERIC_XLOG_H #include "access/xlog.h" #include "access/xlog_internal.h" #include "access/xloginsert.h" #include "storage/bufpage.h" #include "utils/rel.h" #define MAX_GENERIC_XLOG_PAGES XLR_NORMAL_MAX_BLOCK_ID /* Flag bits for GenericXLogRegisterBuffer */ #define GENERIC_XLOG_FULL_IMAGE 0x0001 /* write full-page image */ /* state of generic xlog record construction */ struct GenericXLogState; typedef struct GenericXLogState GenericXLogState; /* API for construction of generic xlog records */ extern GenericXLogState *GenericXLogStart(Relation relation); extern Page GenericXLogRegisterBuffer(GenericXLogState *state, Buffer buffer, int flags); extern XLogRecPtr GenericXLogFinish(GenericXLogState *state); extern void GenericXLogAbort(GenericXLogState *state); /* functions defined for rmgr */ extern void generic_redo(XLogReaderState *record); extern const char *generic_identify(uint8 info); extern void generic_desc(StringInfo buf, XLogReaderState *record); extern void generic_mask(char *pagedata, BlockNumber blkno); #endif /* GENERIC_XLOG_H */ ```
```kotlin package net.corda.testing.node.internal import co.paralleluniverse.fibers.Suspendable import net.corda.core.flows.* import net.corda.core.identity.Party import net.corda.core.toFuture import net.corda.core.utilities.getOrThrow import net.corda.core.utilities.unwrap import net.corda.testing.internal.chooseIdentity import net.corda.testing.node.MockNetwork import net.corda.testing.node.MockNetworkParameters import org.assertj.core.api.Assertions.assertThatExceptionOfType import org.junit.After import org.junit.Test /** * Test based on the example given as an answer to this SO question: * * path_to_url * * but using the `registerFlowFactory` method implemented in response to path_to_url */ class TestResponseFlowInIsolation { private val network: MockNetwork = MockNetwork(MockNetworkParameters(cordappsForAllNodes = cordappsForPackages())) private val a = network.createNode() private val b = network.createNode() @After fun tearDown() = network.stopNodes() // This is the real implementation of Initiator. @InitiatingFlow open class Initiator(private val counterparty: Party) : FlowLogic<Unit>() { @Suspendable override fun call() { val session = initiateFlow(counterparty) session.send("goodString") } } // This is the response flow that we want to isolate for testing. @InitiatedBy(Initiator::class) class Responder(private val counterpartySession: FlowSession) : FlowLogic<Unit>() { @Suspendable override fun call() { val string = counterpartySession.receive<String>().unwrap { contents -> contents } if (string != "goodString") { throw FlowException("String did not contain the expected message.") } } } // This is a fake implementation of Initiator to check how Responder responds to non-golden-path scenarios. @InitiatingFlow class BadInitiator(private val counterparty: Party): FlowLogic<Unit>() { @Suspendable override fun call() { val session = initiateFlow(counterparty) session.send("badString") } } @Test(timeout=300_000) fun test() { // This method returns the Responder flow object used by node B. // We tell node B to respond to BadInitiator with Responder. val initiatedResponderFlowFuture = b.registerInitiatedFlow(BadInitiator::class.java, Responder::class.java).toFuture() // We run the BadInitiator flow on node A. val flow = BadInitiator(b.info.chooseIdentity()) val future = a.startFlow(flow) network.runNetwork() future.get() // We check that the invocation of the Responder flow object has caused an ExecutionException. val initiatedResponderFlow = initiatedResponderFlowFuture.getOrThrow() val initiatedResponderFlowResultFuture = initiatedResponderFlow.stateMachine.resultFuture assertThatExceptionOfType(FlowException::class.java) .isThrownBy { initiatedResponderFlowResultFuture.getOrThrow() } .withMessage("String did not contain the expected message.") } } ```
```scss @import '~@fluentui/react/dist/sass/References.scss'; .azureApim { overflow: hidden; padding: 1em; color: "[theme:bodyText, default: #323130]"; color: var(--bodyText); &.teams { font-family: $ms-font-family-fallbacks; } } .welcome { text-align: center; } .welcomeImage { width: 100%; max-width: 420px; } .links { a { text-decoration: none; color: "[theme:link, default:#03787c]"; color: var(--link); // note: CSS Custom Properties support is limited to modern browsers only &:hover { text-decoration: underline; color: "[theme:linkHovered, default: #014446]"; color: var(--linkHovered); // note: CSS Custom Properties support is limited to modern browsers only } } } ```
Claude Lowitz (born 29 May 1962) is a French former professional football player and manager. As a player, he was a defender. Club career Lowitz played for ten different clubs during his career. Those included Toulouse, Metz, Paris Saint-Germain, Marseille, Montpellier, Nantes, Pau FC, Cahors FC, Gazélec Ajaccio, and Jeanne d'Arc. In 1984 with Metz, he notably featured in a 4–1 win over Barcelona at the Camp Nou in the Cup Winners' Cup first round, eliminating the Spanish side 6–5 on aggregate. During the 1985–86 season with Paris Saint-Germain, he won the Division 1 title. International career Lowitz played one match for the France Olympic football team in 1987. Post-playing career Having retired from football five years earlier, Lowitz became the manager of Saint-Pierroise in Réunion in 2001; however, he left this role in 2002. From January to July 2006, he was the manager of China League Two club Shanghai Dongya. He left that position to work for the youth academy of the club at the Genbao Football Base from 2006 to 2008. After leaving his academy role at Shanghai Dongya in 2008, Lowitz worked for a football academy in Réunion. Honours Toulouse Division 2: 1981–82 Paris Saint-Germain Division 1: 1985–86 References External links 1962 births Living people Sportspeople from Lot (department) French men's footballers French football managers Men's association football defenders Toulouse FC players FC Metz players Paris Saint-Germain F.C. players Olympique de Marseille players Montpellier HSC players FC Nantes players Pau FC players Gazélec Ajaccio players SS Jeanne d'Arc players Olympic footballers for France JS Saint-Pierroise managers Shanghai Port F.C. managers French expatriate sportspeople in China Expatriate football managers in China French expatriate football managers Footballers from Occitania (administrative region)
Sedlec () is a municipality and village in Břeclav District in the South Moravian Region of the Czech Republic. It has about 900 inhabitants. Sedlec lies approximately west of Břeclav, south of Brno, and south-east of Prague. References Villages in Břeclav District
The FIS Nordic Junior World Ski Championships 2004 took place in Stryn, Norway from 3 February to 8 February 2004. It was the 27th Junior World Championships in nordic skiing. Schedule All times are in Central European Time (CET). Cross-country Nordic combined Ski jumping Medal summary Junior events Cross-country skiing Nordic Combined Ski jumping Medal table References 2004 2004 in cross-country skiing 2004 in ski jumping Junior World Ski Championships 2004 in youth sport International sports competitions hosted by Norway
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MODULES // var http = require( 'http' ); // MAIN // /** * Makes an HTTP `GET` request. * * @private * @param {Options} opts - request options * @param {Callback} clbk - callback to invoke after receiving an HTTP response */ function request( opts, clbk ) { var body; var req; var res; req = http.request( opts, onResponse ); req.on( 'error', onError ); req.end(); function onError( error ) { clbk( error ); } function onResponse( response ) { body = ''; response.setEncoding( 'utf8' ); response.on( 'data', onData ); response.on( 'end', onEnd ); res = response; } function onData( chunk ) { body += chunk; } function onEnd() { clbk( null, res, body ); } } // EXPORTS // module.exports = request; ```
Constance Jenkins Macky (née Constance Lillian Jenkins; 1883–1961) was an Australian-born American artist and teacher. She was known for her portraits, landscape paintings, and still life paintings. Biography Constance Lillian Jenkins was born June 29, 1883, in Melbourne, Victoria, Australia. Her parents were Emma Wright and John S. Jenkins, her father was of Scottish descent. She was the youngest of six children, and began to study art seriously at age 15. Macky attended the National Gallery of Victoria Art School (formally National Gallery School of Painting), from 1900 to 1908 and then studied at the Académie Julian in Paris during 1909. In 1912, Jenkins married Eric Spencer Macky in Berkeley, California. They had two sons, including Donald Spencer Macky (1913–2007) who was also an artist. In 1915, the Macky's both participated in the Panama–Pacific International Exposition, creating decorative panels for the Australian and New Zealand Buildings. Constance Jenkins Macky and her spouse founded the Spencer Macky Art School in San Francisco in 1916. The first location of the school was at Post Street, near Gough Street in a building that housed many other notable artists including Leo Lentelli, Clark Hobart, William Claussen, Louise Mahoney, Florence Lundberg, Sigmund Beel, and George Hyde. The school was popular and moved to a larger space at the "Artists Building" at 535 Sacramento Street in San Francisco. By 1917, the Spencer Macky Art School was merged with the California School of Fine Arts (CSFA; now known as the San Francisco Art Institute). After the merge she continued to teach classes at CSFA. She was a member of the San Francisco Art Association, and the California Society of Women Artists. Death and legacy Macky died on November 17, 1961, in San Francisco. She is buried in the Sunset View Cemetery in El Cerrito, California. Macky's work is included in public collections including the National Gallery of Victoria, the National Library of Australia, and others. References External links Reminiscences of Eric Spencer and Constance Macky: oral history transcript / Eric S. Macky; tape recorded interview conducted in 1954. Regional Oral History Office, The Bancroft Library, University of California, Berkeley, California, 1957: and related material, 1954-1957. 1883 births 1961 deaths 20th-century American women artists 20th-century Australian women artists Artists from Melbourne San Francisco Art Institute faculty Académie Julian alumni Artists from San Francisco Australian people of Scottish descent Australian emigrants to the United States National Gallery of Victoria Art School alumni
Matthew Edward Keneley (born December 1, 1973) is a former American football defensive tackle. He was drafted in the seventh round of the 1997 NFL Draft. He played for the San Francisco 49ers in 1999 and for the Los Angeles Xtreme in 2001. References 1973 births Living people American football defensive tackles USC Trojans football players San Francisco 49ers players Los Angeles Xtreme players
Bereznik () is a rural locality (a village) in Kameshnikovskoye Rural Settlement, Sheksninsky District, Vologda Oblast, Russia. The population was 58 as of 2002. Geography Bereznik is located 58 km north of Sheksna (the district's administrative centre) by road. Deryagino is the nearest rural locality. References Rural localities in Sheksninsky District
```c /* * V.Flash PTX (.ptx) image decoder * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * * You should have received a copy of the GNU Lesser General Public * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "libavutil/common.h" #include "libavutil/intreadwrite.h" #include "libavutil/imgutils.h" #include "avcodec.h" #include "internal.h" static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; AVFrame * const p = data; unsigned int offset, w, h, y, stride, bytes_per_pixel; int ret; uint8_t *ptr; if (buf_end - buf < 14) return AVERROR_INVALIDDATA; offset = AV_RL16(buf); w = AV_RL16(buf+8); h = AV_RL16(buf+10); bytes_per_pixel = AV_RL16(buf+12) >> 3; if (bytes_per_pixel != 2) { avpriv_request_sample(avctx, "Image format not RGB15"); return AVERROR_PATCHWELCOME; } avctx->pix_fmt = AV_PIX_FMT_BGR555LE; if (buf_end - buf < offset) return AVERROR_INVALIDDATA; if (offset != 0x2c) avpriv_request_sample(avctx, "offset != 0x2c"); buf += offset; if ((ret = ff_set_dimensions(avctx, w, h)) < 0) return ret; if ((ret = ff_get_buffer(avctx, p, 0)) < 0) return ret; p->pict_type = AV_PICTURE_TYPE_I; ptr = p->data[0]; stride = p->linesize[0]; for (y = 0; y < h && buf_end - buf >= w * bytes_per_pixel; y++) { memcpy(ptr, buf, w*bytes_per_pixel); ptr += stride; buf += w*bytes_per_pixel; } *got_frame = 1; if (y < h) { av_log(avctx, AV_LOG_WARNING, "incomplete packet\n"); return avpkt->size; } return offset + w*h*bytes_per_pixel; } AVCodec ff_ptx_decoder = { .name = "ptx", .long_name = NULL_IF_CONFIG_SMALL("V.Flash PTX image"), .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_PTX, .decode = ptx_decode_frame, .capabilities = AV_CODEC_CAP_DR1, }; ```
```javascript 'use strict'; var fs = require('fs'); var path = require('path'); var notifier = require('node-notifier'); var utils = require('node-notifier/lib/utils.js'); var whichArgument; utils.command = utils.fileCommandJson = utils.immediateFileCommand = function (filename) { var forLinux = filename === whichArgument; // 'notify-send' is built-in on linux var forNonLinux = fs.existsSync(filename) && path.isAbsolute(filename); if ((forLinux || forNonLinux) && filename.indexOf('snapshot') < 0) { console.log('ok'); } process.exit(); }; var which = require('which'); which.sync = function (filename) { whichArgument = filename; return true; }; notifier.notify('hi!'); ```
The following is a list of teams and cyclists that will take part in the 2020 Giro d'Italia. Teams The 19 UCI WorldTeams are automatically invited to the race. Additionally, the organisers of the Giro invited three second-tier UCI Professional Continental teams to participate in the event. The teams participating in the race are: UCI WorldTeams UCI Professional Continental teams Cyclists By starting number By team By nationality References 2020 Giro d'Italia 2020
The First Cabinet of J.B.M. Hertzog was the executive power in South Africa from June 1924 to June 1929. It was also known as the pact government, due to the inclusion of at least two members of the Labour Party in a coalition. Cabinet Sources Government of South Africa Executive branch of the government of South Africa Cabinets of South Africa 1924 establishments in South Africa 1929 disestablishments in South Africa Cabinets established in 1924 Cabinets disestablished in 1929
```go /* * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ package grpc import ( "bufio" "errors" "fmt" "io" "net" "net/http" "net/http/httputil" "net/url" "golang.org/x/net/context" ) var ( // errDisabled indicates that proxy is disabled for the address. errDisabled = errors.New("proxy is disabled for the address") // The following variable will be overwritten in the tests. httpProxyFromEnvironment = http.ProxyFromEnvironment ) func mapAddress(ctx context.Context, address string) (string, error) { req := &http.Request{ URL: &url.URL{ Scheme: "https", Host: address, }, } url, err := httpProxyFromEnvironment(req) if err != nil { return "", err } if url == nil { return "", errDisabled } return url.Host, nil } // To read a response from a net.Conn, http.ReadResponse() takes a bufio.Reader. // It's possible that this reader reads more than what's need for the response and stores // those bytes in the buffer. // bufConn wraps the original net.Conn and the bufio.Reader to make sure we don't lose the // bytes in the buffer. type bufConn struct { net.Conn r io.Reader } func (c *bufConn) Read(b []byte) (int, error) { return c.r.Read(b) } func doHTTPConnectHandshake(ctx context.Context, conn net.Conn, addr string) (_ net.Conn, err error) { defer func() { if err != nil { conn.Close() } }() req := (&http.Request{ Method: http.MethodConnect, URL: &url.URL{Host: addr}, Header: map[string][]string{"User-Agent": {grpcUA}}, }) if err := sendHTTPRequest(ctx, req, conn); err != nil { return nil, fmt.Errorf("failed to write the HTTP request: %v", err) } r := bufio.NewReader(conn) resp, err := http.ReadResponse(r, req) if err != nil { return nil, fmt.Errorf("reading server HTTP response: %v", err) } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { dump, err := httputil.DumpResponse(resp, true) if err != nil { return nil, fmt.Errorf("failed to do connect handshake, status code: %s", resp.Status) } return nil, fmt.Errorf("failed to do connect handshake, response: %q", dump) } return &bufConn{Conn: conn, r: r}, nil } // newProxyDialer returns a dialer that connects to proxy first if necessary. // The returned dialer checks if a proxy is necessary, dial to the proxy with the // provided dialer, does HTTP CONNECT handshake and returns the connection. func newProxyDialer(dialer func(context.Context, string) (net.Conn, error)) func(context.Context, string) (net.Conn, error) { return func(ctx context.Context, addr string) (conn net.Conn, err error) { var skipHandshake bool newAddr, err := mapAddress(ctx, addr) if err != nil { if err != errDisabled { return nil, err } skipHandshake = true newAddr = addr } conn, err = dialer(ctx, newAddr) if err != nil { return } if !skipHandshake { conn, err = doHTTPConnectHandshake(ctx, conn, addr) } return } } ```
```objective-c /** * @file lv_obj_class.h * */ #ifndef LV_OBJ_CLASS_H #define LV_OBJ_CLASS_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../misc/lv_types.h" #include "../misc/lv_area.h" #include "lv_obj_property.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ typedef enum { LV_OBJ_CLASS_EDITABLE_INHERIT, /**< Check the base class. Must have 0 value to let zero initialized class inherit*/ LV_OBJ_CLASS_EDITABLE_TRUE, LV_OBJ_CLASS_EDITABLE_FALSE, } lv_obj_class_editable_t; typedef enum { LV_OBJ_CLASS_GROUP_DEF_INHERIT, /**< Check the base class. Must have 0 value to let zero initialized class inherit*/ LV_OBJ_CLASS_GROUP_DEF_TRUE, LV_OBJ_CLASS_GROUP_DEF_FALSE, } lv_obj_class_group_def_t; typedef enum { LV_OBJ_CLASS_THEME_INHERITABLE_FALSE, /**< Do not inherit theme from base class. */ LV_OBJ_CLASS_THEME_INHERITABLE_TRUE, } lv_obj_class_theme_inheritable_t; typedef void (*lv_obj_class_event_cb_t)(lv_obj_class_t * class_p, lv_event_t * e); /********************** * GLOBAL PROTOTYPES **********************/ /** * Create an object form a class descriptor * @param class_p pointer to a class * @param parent pointer to an object where the new object should be created * @return pointer to the created object */ lv_obj_t * lv_obj_class_create_obj(const lv_obj_class_t * class_p, lv_obj_t * parent); void lv_obj_class_init_obj(lv_obj_t * obj); bool lv_obj_is_editable(lv_obj_t * obj); bool lv_obj_is_group_def(lv_obj_t * obj); /********************** * MACROS **********************/ #ifdef __cplusplus } /*extern "C"*/ #endif #endif /*LV_OBJ_CLASS_H*/ ```
The APA International Humanitarian Award is an award of the American Psychological Association that "recognizes extraordinary humanitarian service and activism by a psychologist or a team of psychologists, including professional and/or volunteer work conducted primarily in the field with underserved populations." Recipients Source: APA 1998/1999 Nila Kapor-Stanulovic 2001 Karen L. Hanscom 2002 Elizabeth Lira 2004 Chris E. Stout 2005 Eduardo Almeida 2006 Center for Victims of Torture -- Guinea International Mental Health Team 2007 Gerard A. (Jerry) Jacobs 2008 Joseph Prewitt Diaz, Gundelina Velazco 2009 Michael Wessells 2012 John Thoburn 2013 M. Brinton Lykes 2014 Malcolm MacLachlan 2015 Sunil Bhatia 2016 Alan Poling 2017 Kathryn L. Norsworthy 2018 Guerda M. Nicolas 2019 Gargi Roysircar 2020 Niels Peter Rygaard 2021 Bhava Nath Poudya 2022 Lucy Wairimu Mukuria See also List of psychology awards References American Psychological Association American psychology awards Humanitarian and service awards
The following are important identities in vector algebra. Identities that involve the magnitude of a vector , or the dot product (scalar product) of two vectors A·B, apply to vectors in any dimension. Identities that use the cross product (vector product) A×B are defined only in three dimensions. Magnitudes The magnitude of a vector A can be expressed using the dot product: In three-dimensional Euclidean space, the magnitude of a vector is determined from its three components using Pythagoras' theorem: Inequalities The Cauchy–Schwarz inequality: The triangle inequality: The reverse triangle inequality: Angles The vector product and the scalar product of two vectors define the angle between them, say θ: To satisfy the right-hand rule, for positive θ, vector B is counter-clockwise from A, and for negative θ it is clockwise. The Pythagorean trigonometric identity then provides: If a vector A = (Ax, Ay, Az) makes angles α, β, γ with an orthogonal set of x-, y- and z-axes, then: and analogously for angles β, γ. Consequently: with unit vectors along the axis directions. Areas and volumes The area Σ of a parallelogram with sides A and B containing the angle θ is: which will be recognized as the magnitude of the vector cross product of the vectors A and B lying along the sides of the parallelogram. That is: (If A, B are two-dimensional vectors, this is equal to the determinant of the 2 × 2 matrix with rows A, B.) The square of this expression is: where Γ(A, B) is the Gram determinant of A and B defined by: In a similar fashion, the squared volume V of a parallelepiped spanned by the three vectors A, B, C is given by the Gram determinant of the three vectors: Since A, B, C are three-dimensional vectors, this is equal to the square of the scalar triple product below. This process can be extended to n-dimensions. Addition and multiplication of vectors Commutativity of addition: . Commutativity of scalar product: . Anticommutativity of cross product: . Distributivity of multiplication by a scalar over addition: . Distributivity of scalar product over addition: . Distributivity of vector product over addition: . Scalar triple product: Vector triple product: . Jacobi identity: Binet-Cauchy identity: Lagrange's identity: . Vector quadruple product: A consequence of the previous equation: In 3 dimensions, a vector D can be expressed in terms of basis vectors {A,B,C} as: See also Vector space Geometric algebra Notes References Mathematical identities Mathematics-related lists
Slick Dogs and Ponies is the third studio album from American garage rock band, Louis XIV. Its release date was January 29, 2008. The album was leaked on torrent networks on January 18, 2008, after the band temporarily added all of the songs to their MySpace page. Reception Initial critical response to Slick Dogs and Ponies was negative. At Metacritic, which assigns a normalized rating out of 100 to reviews from mainstream critics, the album has received an average score of 37, based on 10 reviews. Track listing "Guilt By Association" "Air Traffic Control" "Misguided Sheep" "There's a Traitor in This Room" "Sometimes You Just Want To" "Tina" "Stalker" "Free Won't Be What it Used to Be" "Swarming of the Bees" "Hopesick" "Slick Dogs and Ponies" Bonus Tracks iTunes Deluxe Bundle "Air Traffic Control (Oxygen Remix)" "Eleanor Rigby" "Thief In The Choir (Feat. Brandon Flowers)" Hot Topic Exclusive "Money Bunny" "Actors and Singers" Rhapsody "Dirty Knees" Independent Retail "Save a Prayer" "Ride a White Swan" References External links 2008 albums Louis XIV (band) albums
```go package main const bannerTmpl = ` _________ __ / ____/ (_)___ / /_ / /_ / / / __ \/ __/ / __/ / / / /_/ / /_ /_/ /_/_/ .___/\__/ /_/ {{if .Version}}Version: {{.Version}}{{end}} Commit: {{.Commit}} Build Date: {{.Date}} Go Version: {{.GoVersion}} OS/Arch: {{.GoOS}}/{{.GoArch}} ` type bannerOpts struct { Version string Commit string Date string GoVersion string GoOS string GoArch string } ```
```scala // THIS FILE IS AUTO-GENERATED. DO NOT EDIT package ai.verta.swagger._public.modeldb.model import scala.util.Try import net.liftweb.json._ import ai.verta.swagger._public.modeldb.model.ArtifactTypeEnumArtifactType._ import ai.verta.swagger._public.modeldb.model.OperatorEnumOperator._ import ai.verta.swagger._public.modeldb.model.ProtobufNullValue._ import ai.verta.swagger._public.modeldb.model.TernaryEnumTernary._ import ai.verta.swagger._public.modeldb.model.ValueTypeEnumValueType._ import ai.verta.swagger.client.objects._ case class ModeldbUpdateExperimentNameOrDescription ( description: Option[String] = None, id: Option[String] = None, name: Option[String] = None ) extends BaseSwagger { def toJson(): JValue = ModeldbUpdateExperimentNameOrDescription.toJson(this) } object ModeldbUpdateExperimentNameOrDescription { def toJson(obj: ModeldbUpdateExperimentNameOrDescription): JObject = { new JObject( List[Option[JField]]( obj.description.map(x => JField("description", JString(x))), obj.id.map(x => JField("id", JString(x))), obj.name.map(x => JField("name", JString(x))) ).flatMap(x => x match { case Some(y) => List(y) case None => Nil }) ) } def fromJson(value: JValue): ModeldbUpdateExperimentNameOrDescription = value match { case JObject(fields) => { val fieldsMap = fields.map(f => (f.name, f.value)).toMap ModeldbUpdateExperimentNameOrDescription( // TODO: handle required description = fieldsMap.get("description").map(JsonConverter.fromJsonString), id = fieldsMap.get("id").map(JsonConverter.fromJsonString), name = fieldsMap.get("name").map(JsonConverter.fromJsonString) ) } case _ => throw new IllegalArgumentException(s"unknown type ${value.getClass.toString}") } } ```
The Australian Journal of Politics and History is a quarterly peer-reviewed academic journal that publishes articles about history, political studies, and international affairs, concentrating on Australia, the Asia-Pacific region, and modern Europe. It was established in 1955 and was published triannually until 1997. In 1998 it began publishing quarterly. Until recently it was edited by Andrew Bonnell and Matt McDonald and is now edited by Geoff Ginn and Lisa Featherstone. It is published by Wiley-Blackwell on behalf of the School of Political Science & International Studies and the School of Historical & Philosophical Inquiry at the University of Queensland. Abstracting and indexing It is indexed or abstracted in the following services: Academic Search Academic ASAP Arts & Humanities Citation Index Cambridge Scientific Abstracts Current Contents/Arts & Humanities International Bibliography of the Social Sciences InfoTrac ProQuest databases References External links Academic journals established in 1955 History journals English-language journals Quarterly journals Wiley-Blackwell academic journals 1955 establishments in Australia University of Queensland academic journals
Cosmopterix aurotegulae is a moth of the family Cosmopterigidae. It is known from Veracruz, Mexico. Adults have been collected in June. Description Female. Forewing length 3.9 mm. Head: frons shining pale golden metallic with greenish and purplish reflections, vertex shining dark brown with golden gloss, neck tufts shining dark brown with greenish and purplish reflections, laterally lined white, collar shining dark brown with greenish and reddish reflections; labial palpus first segment very short, brownish grey, second segment four-fifths of the length of third, shining dark brown with indistinct whitish longitudinal lines on both sides, third segment dark brown with a white dorsal line; scape dorsally shining dark brown with a white anterior line, ventrally white, antenna shining dark brown, at two-thirds a white ring of approximately five segments, some of these white segments partially brown. Thorax shining dark brown with greenish and reddish reflections, tegulae shining pale golden metallic. Legs: shining dark brown with golden gloss, foreleg with a white line on tibia and tarsal segments one and five, segment two dorsally white in apical half, tibia of midleg with an indistinct white very oblique basal line, an oblique white medial line and a white apical ring, tarsal segments one and two with white apical rings, segment five entirely white, tibia of hindleg as midleg, but with an additional broad pale golden subapical ring and without a white apical ring, tarsal segments four and five entirely white, spurs dark brown, apically whitish. Forewing shining dark brown with golden gloss, three very small silvery white streaks with strong bluish gloss in the basal area, the spots in a slightly outwardly oblique row, the subcostal nearest to base and slightly longer than the medial and subdorsal, the medial below end of subcostal, the subdorsal slightly further from base than the medial, a broad, slightly inwardly oblique, tubercular pale golden metallic fascia at the middle, a similar fascia, but outwardly oblique, at three-quarters, outer fascia outwardly edged by a white costal streak, apical line as a silvery white spot in the middle of the apical area and a broad white spot in cilia at apex, cilia dark brown, paler towards dorsum. Hindwing shining dark brown, cilia brown. Underside: forewing shining dark greyish brown with greenish gloss, white costal streak and apical line distinctly visible, hindwing shining dark greyish brown. Abdomen dorsally shining dark brown with reddish gloss, ventrally segments broadly banded shining white posteriorly and with a broad white ventral streak, segment seven dark brown, anal tuft dark brown. Etymology The name of the species is derived from the golden colour of the tegulae. A noun (plural) in apposition. References aurotegulae
Tourek Williams (born May 9, 1991) is a former American football outside linebacker. He was drafted by the San Diego Chargers in the sixth round of the 2013 NFL Draft. He played college football at Florida International. High school Williams attended Miami Norland Senior High School in Miami Gardens, Florida. After a great senior season, he was named an All-Dade County selection and District 12-6A first-team selection. He was considered a two-star recruit by Rivals.com. College career Williams attended Florida International University from 2009 to 2012. During his tenure, he collected 150 total tackles, including 45 for loss, 18 sacks, seven pass deflections, and two forced fumbles. He also record 18.0 sacks, which is second in school history. He earned All-Sun Belt honors three times during his career. Professional career San Diego Chargers Williams was drafted by the San Diego Chargers in the sixth round (179th overall) of the 2013 NFL Draft. Williams played mostly special teams, but was forced into the starting lineup due to the injuries of Jarrett Johnson and Melvin Ingram. He played 13 games, starting 6, collecting 10 tackles, 1 sack, and a forced fumble. Kansas City Chiefs On May 22, 2017, Williams signed with the Kansas City Chiefs. He was waived on May 30, 2017. References External links FlU Panthers bio Los Angeles Chargers bio 1991 births Living people Players of American football from Miami Players of American football from Tallahassee, Florida American football linebackers American football defensive ends FIU Panthers football players San Diego Chargers players Kansas City Chiefs players Miami Norland Senior High School alumni
Branna may refer to: Dolní Branná, village in the Hradec Králové Region of the Czech Republic Horní Branná, village and municipality in the Liberec Region of the Czech Republic Branná, village and municipality in the Olomouc Region of the Czech Republic Bränna, village in Mellerud Municipality, Västra Götaland County, Sweden
```ruby # frozen_string_literal: true module RBS module Test class Tester attr_reader :env attr_reader :targets attr_reader :instance_testers attr_reader :singleton_testers def initialize(env:) @env = env @targets = [] @instance_testers = {} @singleton_testers = {} end def factory @factory ||= Factory.new end def builder @builder ||= DefinitionBuilder.new(env: env) end def skip_method?(type_name, method) if method.implemented_in == type_name if method.annotations.any? {|a| a.string == "rbs:test:skip" } :skip else false end else if method.annotations.any? {|a| a.string == "rbs:test:target" } false else :implemented_in end end end def install!(klass, sample_size:, unchecked_classes:) RBS.logger.info { "Installing runtime type checker in #{klass}..." } type_name = factory.type_name(klass.name).absolute! builder.build_instance(type_name).tap do |definition| instance_key = new_key(type_name, "InstanceChecker") tester, set = instance_testers[klass] ||= [ MethodCallTester.new(klass, builder, definition, kind: :instance, sample_size: sample_size, unchecked_classes: unchecked_classes), Set[] ] Observer.register(instance_key, tester) definition.methods.each do |name, method| if reason = skip_method?(type_name, method) unless reason == :implemented_in RBS.logger.info { "Skipping ##{name} because of `#{reason}`..." } end else if !set.include?(name) && ( name == :initialize || klass.instance_methods(false).include?(name) || klass.private_instance_methods(false).include?(name)) RBS.logger.info { "Setting up method hook in ##{name}..." } Hook.hook_instance_method klass, name, key: instance_key set << name end end end end builder.build_singleton(type_name).tap do |definition| singleton_key = new_key(type_name, "SingletonChecker") tester, set = singleton_testers[klass] ||= [ MethodCallTester.new(klass.singleton_class, builder, definition, kind: :singleton, sample_size: sample_size, unchecked_classes: unchecked_classes), Set[] ] Observer.register(singleton_key, tester) definition.methods.each do |name, method| if reason = skip_method?(type_name, method) unless reason == :implemented_in RBS.logger.info { "Skipping .#{name} because of `#{reason}`..." } end else if klass.methods(false).include?(name) && !set.include?(name) RBS.logger.info { "Setting up method hook in .#{name}..." } Hook.hook_singleton_method klass, name, key: singleton_key set << name end end end end targets << klass end def new_key(type_name, prefix) "#{prefix}__#{type_name}__#{SecureRandom.hex(10)}" end class TypeError < Exception attr_reader :errors def initialize(errors) @errors = errors super "TypeError: #{errors.map {|e| Errors.to_string(e) }.join(", ")}" end end class MethodCallTester attr_reader :self_class attr_reader :definition attr_reader :builder attr_reader :kind attr_reader :sample_size attr_reader :unchecked_classes def initialize(self_class, builder, definition, kind:, sample_size:, unchecked_classes:) @self_class = self_class @definition = definition @builder = builder @kind = kind @sample_size = sample_size @unchecked_classes = unchecked_classes end def env builder.env end def check @check ||= TypeCheck.new(self_class: self_class, builder: builder, sample_size: sample_size, unchecked_classes: unchecked_classes) end def format_method_name(name) case kind when :instance "##{name}" when :singleton ".#{name}" end end def call(receiver, trace) method_name = trace.method_name method = definition.methods[method_name] if method RBS.logger.debug { "Type checking `#{self_class}#{format_method_name(method_name)}`..."} errors = check.overloaded_call(method, format_method_name(method_name), trace, errors: []) if errors.empty? RBS.logger.debug { "No type error detected " } else RBS.logger.debug { "Detected type error " } raise TypeError.new(errors) end else RBS.logger.error { "Type checking `#{self_class}#{method_name}` call but no method found in definition" } end end end end end end ```
```html <html lang="en"> <head> <title>CFI directives - Using as</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="Using as"> <meta name="generator" content="makeinfo 4.8"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Pseudo-Ops.html#Pseudo-Ops" title="Pseudo Ops"> <link rel="prev" href="Byte.html#Byte" title="Byte"> <link rel="next" href="Comm.html#Comm" title="Comm"> <link href="path_to_url" rel="generator-home" title="Texinfo Homepage"> <!-- This file documents the GNU Assembler "as". Permission is granted to copy, distribute and/or modify this document or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the --> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <p> <a name="CFI-directives"></a> Next:&nbsp;<a rel="next" accesskey="n" href="Comm.html#Comm">Comm</a>, Previous:&nbsp;<a rel="previous" accesskey="p" href="Byte.html#Byte">Byte</a>, Up:&nbsp;<a rel="up" accesskey="u" href="Pseudo-Ops.html#Pseudo-Ops">Pseudo Ops</a> <hr> </div> <h3 class="section">7.10 CFI directives</h3> <h4 class="subsection">7.10.1 <code>.cfi_sections </code><var>section_list</var></h4> <p><a name="index-g_t_0040code_007bcfi_005fsections_007d-directive-299"></a><code>.cfi_sections</code> may be used to specify whether CFI directives should emit <code>.eh_frame</code> section and/or <code>.debug_frame</code> section. If <var>section_list</var> is <code>.eh_frame</code>, <code>.eh_frame</code> is emitted, if <var>section_list</var> is <code>.debug_frame</code>, <code>.debug_frame</code> is emitted. To emit both use <code>.eh_frame, .debug_frame</code>. The default if this directive is not used is <code>.cfi_sections .eh_frame</code>. <p>On targets that support compact unwinding tables these can be generated by specifying <code>.eh_frame_entry</code> instead of <code>.eh_frame</code>. <h4 class="subsection">7.10.2 <code>.cfi_startproc [simple]</code></h4> <p><a name="index-g_t_0040code_007bcfi_005fstartproc_007d-directive-300"></a><code>.cfi_startproc</code> is used at the beginning of each function that should have an entry in <code>.eh_frame</code>. It initializes some internal data structures. Don't forget to close the function by <code>.cfi_endproc</code>. <p>Unless <code>.cfi_startproc</code> is used along with parameter <code>simple</code> it also emits some architecture dependent initial CFI instructions. <h4 class="subsection">7.10.3 <code>.cfi_endproc</code></h4> <p><a name="index-g_t_0040code_007bcfi_005fendproc_007d-directive-301"></a><code>.cfi_endproc</code> is used at the end of a function where it closes its unwind entry previously opened by <code>.cfi_startproc</code>, and emits it to <code>.eh_frame</code>. <h4 class="subsection">7.10.4 <code>.cfi_personality </code><var>encoding</var><code> [, </code><var>exp</var><code>]</code></h4> <p><a name="index-g_t_0040code_007bcfi_005fpersonality_007d-directive-302"></a><code>.cfi_personality</code> defines personality routine and its encoding. <var>encoding</var> must be a constant determining how the personality should be encoded. If it is 255 (<code>DW_EH_PE_omit</code>), second argument is not present, otherwise second argument should be a constant or a symbol name. When using indirect encodings, the symbol provided should be the location where personality can be loaded from, not the personality routine itself. The default after <code>.cfi_startproc</code> is <code>.cfi_personality 0xff</code>, no personality routine. <h4 class="subsection">7.10.5 <code>.cfi_personality_id </code><var>id</var></h4> <p><a name=your_sha256_hash-303"></a><code>cfi_personality_id</code> defines a personality routine by its index as defined in a compact unwinding format. Only valid when generating compact EH frames (i.e. with <code>.cfi_sections eh_frame_entry</code>. <h4 class="subsection">7.10.6 <code>.cfi_fde_data [</code><var>opcode1</var><code> [, ...]]</code></h4> <p><a name="index-g_t_0040code_007bcfi_005ffde_005fdata_007d-directive-304"></a><code>cfi_fde_data</code> is used to describe the compact unwind opcodes to be used for the current function. These are emitted inline in the <code>.eh_frame_entry</code> section if small enough and there is no LSDA, or in the <code>.gnu.extab</code> section otherwise. Only valid when generating compact EH frames (i.e. with <code>.cfi_sections eh_frame_entry</code>. <h4 class="subsection">7.10.7 <code>.cfi_lsda </code><var>encoding</var><code> [, </code><var>exp</var><code>]</code></h4> <p><code>.cfi_lsda</code> defines LSDA and its encoding. <var>encoding</var> must be a constant determining how the LSDA should be encoded. If it is 255 (<code>DW_EH_PE_omit</code>), the second argument is not present, otherwise the second argument should be a constant or a symbol name. The default after <code>.cfi_startproc</code> is <code>.cfi_lsda 0xff</code>, meaning that no LSDA is present. <h4 class="subsection">7.10.8 <code>.cfi_inline_lsda</code> [<var>align</var>]</h4> <p><code>.cfi_inline_lsda</code> marks the start of a LSDA data section and switches to the corresponding <code>.gnu.extab</code> section. Must be preceded by a CFI block containing a <code>.cfi_lsda</code> directive. Only valid when generating compact EH frames (i.e. with <code>.cfi_sections eh_frame_entry</code>. <p>The table header and unwinding opcodes will be generated at this point, so that they are immediately followed by the LSDA data. The symbol referenced by the <code>.cfi_lsda</code> directive should still be defined in case a fallback FDE based encoding is used. The LSDA data is terminated by a section directive. <p>The optional <var>align</var> argument specifies the alignment required. The alignment is specified as a power of two, as with the <code>.p2align</code> directive. <h4 class="subsection">7.10.9 <code>.cfi_def_cfa </code><var>register</var><code>, </code><var>offset</var></h4> <p><code>.cfi_def_cfa</code> defines a rule for computing CFA as: <i>take address from </i><var>register</var><i> and add </i><var>offset</var><i> to it</i>. <h4 class="subsection">7.10.10 <code>.cfi_def_cfa_register </code><var>register</var></h4> <p><code>.cfi_def_cfa_register</code> modifies a rule for computing CFA. From now on <var>register</var> will be used instead of the old one. Offset remains the same. <h4 class="subsection">7.10.11 <code>.cfi_def_cfa_offset </code><var>offset</var></h4> <p><code>.cfi_def_cfa_offset</code> modifies a rule for computing CFA. Register remains the same, but <var>offset</var> is new. Note that it is the absolute offset that will be added to a defined register to compute CFA address. <h4 class="subsection">7.10.12 <code>.cfi_adjust_cfa_offset </code><var>offset</var></h4> <p>Same as <code>.cfi_def_cfa_offset</code> but <var>offset</var> is a relative value that is added/substracted from the previous offset. <h4 class="subsection">7.10.13 <code>.cfi_offset </code><var>register</var><code>, </code><var>offset</var></h4> <p>Previous value of <var>register</var> is saved at offset <var>offset</var> from CFA. <h4 class="subsection">7.10.14 <code>.cfi_rel_offset </code><var>register</var><code>, </code><var>offset</var></h4> <p>Previous value of <var>register</var> is saved at offset <var>offset</var> from the current CFA register. This is transformed to <code>.cfi_offset</code> using the known displacement of the CFA register from the CFA. This is often easier to use, because the number will match the code it's annotating. <h4 class="subsection">7.10.15 <code>.cfi_register </code><var>register1</var><code>, </code><var>register2</var></h4> <p>Previous value of <var>register1</var> is saved in register <var>register2</var>. <h4 class="subsection">7.10.16 <code>.cfi_restore </code><var>register</var></h4> <p><code>.cfi_restore</code> says that the rule for <var>register</var> is now the same as it was at the beginning of the function, after all initial instruction added by <code>.cfi_startproc</code> were executed. <h4 class="subsection">7.10.17 <code>.cfi_undefined </code><var>register</var></h4> <p>From now on the previous value of <var>register</var> can't be restored anymore. <h4 class="subsection">7.10.18 <code>.cfi_same_value </code><var>register</var></h4> <p>Current value of <var>register</var> is the same like in the previous frame, i.e. no restoration needed. <h4 class="subsection">7.10.19 <code>.cfi_remember_state</code>,</h4> <p>First save all current rules for all registers by <code>.cfi_remember_state</code>, then totally screw them up by subsequent <code>.cfi_*</code> directives and when everything is hopelessly bad, use <code>.cfi_restore_state</code> to restore the previous saved state. <h4 class="subsection">7.10.20 <code>.cfi_return_column </code><var>register</var></h4> <p>Change return column <var>register</var>, i.e. the return address is either directly in <var>register</var> or can be accessed by rules for <var>register</var>. <h4 class="subsection">7.10.21 <code>.cfi_signal_frame</code></h4> <p>Mark current function as signal trampoline. <h4 class="subsection">7.10.22 <code>.cfi_window_save</code></h4> <p>SPARC register window has been saved. <h4 class="subsection">7.10.23 <code>.cfi_escape</code> <var>expression</var>[, <small class="dots">...</small>]</h4> <p>Allows the user to add arbitrary bytes to the unwind info. One might use this to add OS-specific CFI opcodes, or generic CFI opcodes that GAS does not yet support. <h4 class="subsection">7.10.24 <code>.cfi_val_encoded_addr </code><var>register</var><code>, </code><var>encoding</var><code>, </code><var>label</var></h4> <p>The current value of <var>register</var> is <var>label</var>. The value of <var>label</var> will be encoded in the output file according to <var>encoding</var>; see the description of <code>.cfi_personality</code> for details on this encoding. <p>The usefulness of equating a register to a fixed label is probably limited to the return address register. Here, it can be useful to mark a code segment that has only one return address which is reached by a direct branch and no copy of the return address exists in memory or another register. </body></html> ```
```javascript /*! * jQuery JavaScript Library v3.1.1 * path_to_url * * Includes Sizzle.js * path_to_url * * Released under the MIT license * path_to_url * * Date: 2016-09-22T22:30Z */ ( function( global, factory ) { "use strict"; if ( typeof module === "object" && typeof module.exports === "object" ) { // For CommonJS and CommonJS-like environments where a proper `window` // is present, execute the factory and get jQuery. // For environments that do not have a `window` with a `document` // (such as Node.js), expose a factory as module.exports. // This accentuates the need for the creation of a real `window`. // e.g. var jQuery = require("jquery")(window); // See ticket #14549 for more info. module.exports = global.document ? factory( global, true ) : function( w ) { if ( !w.document ) { throw new Error( "jQuery requires a window with a document" ); } return factory( w ); }; } else { factory( global ); } // Pass this if window is not defined yet } )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) { // Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1 // throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode // arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common // enough that all such attempts are guarded in a try block. "use strict"; var arr = []; var document = window.document; var getProto = Object.getPrototypeOf; var slice = arr.slice; var concat = arr.concat; var push = arr.push; var indexOf = arr.indexOf; var class2type = {}; var toString = class2type.toString; var hasOwn = class2type.hasOwnProperty; var fnToString = hasOwn.toString; var ObjectFunctionString = fnToString.call( Object ); var support = {}; function DOMEval( code, doc ) { doc = doc || document; var script = doc.createElement( "script" ); script.text = code; doc.head.appendChild( script ).parentNode.removeChild( script ); } /* global Symbol */ // Defining this global in .eslintrc.json would create a danger of using the global // unguarded in another place, it seems safer to define global only for this module var version = "3.1.1", // Define a local copy of jQuery jQuery = function( selector, context ) { // The jQuery object is actually just the init constructor 'enhanced' // Need init if jQuery is called (just allow error to be thrown if not included) return new jQuery.fn.init( selector, context ); }, // Support: Android <=4.0 only // Make sure we trim BOM and NBSP rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, // Matches dashed string for camelizing rmsPrefix = /^-ms-/, rdashAlpha = /-([a-z])/g, // Used by jQuery.camelCase as callback to replace() fcamelCase = function( all, letter ) { return letter.toUpperCase(); }; jQuery.fn = jQuery.prototype = { // The current version of jQuery being used jquery: version, constructor: jQuery, // The default length of a jQuery object is 0 length: 0, toArray: function() { return slice.call( this ); }, // Get the Nth element in the matched element set OR // Get the whole matched element set as a clean array get: function( num ) { // Return all the elements in a clean array if ( num == null ) { return slice.call( this ); } // Return just the one element from the set return num < 0 ? this[ num + this.length ] : this[ num ]; }, // Take an array of elements and push it onto the stack // (returning the new matched element set) pushStack: function( elems ) { // Build a new jQuery matched element set var ret = jQuery.merge( this.constructor(), elems ); // Add the old object onto the stack (as a reference) ret.prevObject = this; // Return the newly-formed element set return ret; }, // Execute a callback for every element in the matched set. each: function( callback ) { return jQuery.each( this, callback ); }, map: function( callback ) { return this.pushStack( jQuery.map( this, function( elem, i ) { return callback.call( elem, i, elem ); } ) ); }, slice: function() { return this.pushStack( slice.apply( this, arguments ) ); }, first: function() { return this.eq( 0 ); }, last: function() { return this.eq( -1 ); }, eq: function( i ) { var len = this.length, j = +i + ( i < 0 ? len : 0 ); return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] ); }, end: function() { return this.prevObject || this.constructor(); }, // For internal use only. // Behaves like an Array's method, not like a jQuery method. push: push, sort: arr.sort, splice: arr.splice }; jQuery.extend = jQuery.fn.extend = function() { var options, name, src, copy, copyIsArray, clone, target = arguments[ 0 ] || {}, i = 1, length = arguments.length, deep = false; // Handle a deep copy situation if ( typeof target === "boolean" ) { deep = target; // Skip the boolean and the target target = arguments[ i ] || {}; i++; } // Handle case when target is a string or something (possible in deep copy) if ( typeof target !== "object" && !jQuery.isFunction( target ) ) { target = {}; } // Extend jQuery itself if only one argument is passed if ( i === length ) { target = this; i--; } for ( ; i < length; i++ ) { // Only deal with non-null/undefined values if ( ( options = arguments[ i ] ) != null ) { // Extend the base object for ( name in options ) { src = target[ name ]; copy = options[ name ]; // Prevent never-ending loop if ( target === copy ) { continue; } // Recurse if we're merging plain objects or arrays if ( deep && copy && ( jQuery.isPlainObject( copy ) || ( copyIsArray = jQuery.isArray( copy ) ) ) ) { if ( copyIsArray ) { copyIsArray = false; clone = src && jQuery.isArray( src ) ? src : []; } else { clone = src && jQuery.isPlainObject( src ) ? src : {}; } // Never move original objects, clone them target[ name ] = jQuery.extend( deep, clone, copy ); // Don't bring in undefined values } else if ( copy !== undefined ) { target[ name ] = copy; } } } } // Return the modified object return target; }; jQuery.extend( { // Unique for each copy of jQuery on the page expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ), // Assume jQuery is ready without the ready module isReady: true, error: function( msg ) { throw new Error( msg ); }, noop: function() {}, isFunction: function( obj ) { return jQuery.type( obj ) === "function"; }, isArray: Array.isArray, isWindow: function( obj ) { return obj != null && obj === obj.window; }, isNumeric: function( obj ) { // As of jQuery 3.0, isNumeric is limited to // strings and numbers (primitives or objects) // that can be coerced to finite numbers (gh-2662) var type = jQuery.type( obj ); return ( type === "number" || type === "string" ) && // parseFloat NaNs numeric-cast false positives ("") // ...but misinterprets leading-number strings, particularly hex literals ("0x...") // subtraction forces infinities to NaN !isNaN( obj - parseFloat( obj ) ); }, isPlainObject: function( obj ) { var proto, Ctor; // Detect obvious negatives // Use toString instead of jQuery.type to catch host objects if ( !obj || toString.call( obj ) !== "[object Object]" ) { return false; } proto = getProto( obj ); // Objects with no prototype (e.g., `Object.create( null )`) are plain if ( !proto ) { return true; } // Objects with prototype are plain iff they were constructed by a global Object function Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor; return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString; }, isEmptyObject: function( obj ) { /* eslint-disable no-unused-vars */ // See path_to_url var name; for ( name in obj ) { return false; } return true; }, type: function( obj ) { if ( obj == null ) { return obj + ""; } // Support: Android <=2.3 only (functionish RegExp) return typeof obj === "object" || typeof obj === "function" ? class2type[ toString.call( obj ) ] || "object" : typeof obj; }, // Evaluates a script in a global context globalEval: function( code ) { DOMEval( code ); }, // Convert dashed to camelCase; used by the css and data modules // Support: IE <=9 - 11, Edge 12 - 13 // Microsoft forgot to hump their vendor prefix (#9572) camelCase: function( string ) { return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); }, nodeName: function( elem, name ) { return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); }, each: function( obj, callback ) { var length, i = 0; if ( isArrayLike( obj ) ) { length = obj.length; for ( ; i < length; i++ ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } else { for ( i in obj ) { if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) { break; } } } return obj; }, // Support: Android <=4.0 only trim: function( text ) { return text == null ? "" : ( text + "" ).replace( rtrim, "" ); }, // results is for internal usage only makeArray: function( arr, results ) { var ret = results || []; if ( arr != null ) { if ( isArrayLike( Object( arr ) ) ) { jQuery.merge( ret, typeof arr === "string" ? [ arr ] : arr ); } else { push.call( ret, arr ); } } return ret; }, inArray: function( elem, arr, i ) { return arr == null ? -1 : indexOf.call( arr, elem, i ); }, // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit merge: function( first, second ) { var len = +second.length, j = 0, i = first.length; for ( ; j < len; j++ ) { first[ i++ ] = second[ j ]; } first.length = i; return first; }, grep: function( elems, callback, invert ) { var callbackInverse, matches = [], i = 0, length = elems.length, callbackExpect = !invert; // Go through the array, only saving the items // that pass the validator function for ( ; i < length; i++ ) { callbackInverse = !callback( elems[ i ], i ); if ( callbackInverse !== callbackExpect ) { matches.push( elems[ i ] ); } } return matches; }, // arg is for internal usage only map: function( elems, callback, arg ) { var length, value, i = 0, ret = []; // Go through the array, translating each of the items to their new values if ( isArrayLike( elems ) ) { length = elems.length; for ( ; i < length; i++ ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } // Go through every key on the object, } else { for ( i in elems ) { value = callback( elems[ i ], i, arg ); if ( value != null ) { ret.push( value ); } } } // Flatten any nested arrays return concat.apply( [], ret ); }, // A global GUID counter for objects guid: 1, // Bind a function to a context, optionally partially applying any // arguments. proxy: function( fn, context ) { var tmp, args, proxy; if ( typeof context === "string" ) { tmp = fn[ context ]; context = fn; fn = tmp; } // Quick check to determine if target is callable, in the spec // this throws a TypeError, but we will just return undefined. if ( !jQuery.isFunction( fn ) ) { return undefined; } // Simulated bind args = slice.call( arguments, 2 ); proxy = function() { return fn.apply( context || this, args.concat( slice.call( arguments ) ) ); }; // Set the guid of unique handler to the same of original handler, so it can be removed proxy.guid = fn.guid = fn.guid || jQuery.guid++; return proxy; }, now: Date.now, // jQuery.support is not used in Core but other projects attach their // properties to it so it needs to exist. support: support } ); if ( typeof Symbol === "function" ) { jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ]; } // Populate the class2type map jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ), function( i, name ) { class2type[ "[object " + name + "]" ] = name.toLowerCase(); } ); function isArrayLike( obj ) { // Support: real iOS 8.2 only (not reproducible in simulator) // `in` check used to prevent JIT error (gh-2145) // hasOwn isn't used here due to false negatives // regarding Nodelist length in IE var length = !!obj && "length" in obj && obj.length, type = jQuery.type( obj ); if ( type === "function" || jQuery.isWindow( obj ) ) { return false; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && ( length - 1 ) in obj; } var Sizzle = /*! * Sizzle CSS Selector Engine v2.3.3 * path_to_url * * Released under the MIT license * path_to_url * * Date: 2016-08-08 */ (function( window ) { var i, support, Expr, getText, isXML, tokenize, compile, select, outermostContext, sortInput, hasDuplicate, // Local document vars setDocument, document, docElem, documentIsHTML, rbuggyQSA, rbuggyMatches, matches, contains, // Instance-specific data expando = "sizzle" + 1 * new Date(), preferredDoc = window.document, dirruns = 0, done = 0, classCache = createCache(), tokenCache = createCache(), compilerCache = createCache(), sortOrder = function( a, b ) { if ( a === b ) { hasDuplicate = true; } return 0; }, // Instance methods hasOwn = ({}).hasOwnProperty, arr = [], pop = arr.pop, push_native = arr.push, push = arr.push, slice = arr.slice, // Use a stripped-down indexOf as it's faster than native // path_to_url indexOf = function( list, elem ) { var i = 0, len = list.length; for ( ; i < len; i++ ) { if ( list[i] === elem ) { return i; } } return -1; }, booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", // Regular expressions // path_to_url#whitespace whitespace = "[\\x20\\t\\r\\n\\f]", // path_to_url#value-def-identifier identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", // Attribute selectors: path_to_url#attribute-selectors attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + // Operator (capture 2) "*([*^$|!~]?=)" + whitespace + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + "*\\]", pseudos = ":(" + identifier + ")(?:\\((" + // To reduce the number of selectors needing tokenize in the preFilter, prefer arguments: // 1. quoted (capture 3; capture 4 or capture 5) "('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" + // 2. simple (capture 6) "((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" + // 3. anything else (capture 2) ".*" + ")\\)|)", // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter rwhitespace = new RegExp( whitespace + "+", "g" ), rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ), rpseudo = new RegExp( pseudos ), ridentifier = new RegExp( "^" + identifier + "$" ), matchExpr = { "ID": new RegExp( "^#(" + identifier + ")" ), "CLASS": new RegExp( "^\\.(" + identifier + ")" ), "TAG": new RegExp( "^(" + identifier + "|[*])" ), "ATTR": new RegExp( "^" + attributes ), "PSEUDO": new RegExp( "^" + pseudos ), "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), // For use in libraries implementing .is() // We use this for POS matching in `select` "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) }, rinputs = /^(?:input|select|textarea|button)$/i, rheader = /^h\d$/i, rnative = /^[^{]+\{\s*\[native \w/, // Easily-parseable/retrievable ID or TAG or CLASS selectors rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, rsibling = /[+~]/, // CSS escapes // path_to_url#escaped-characters runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), funescape = function( _, escaped, escapedWhitespace ) { var high = "0x" + escaped - 0x10000; // NaN means non-codepoint // Support: Firefox<24 // Workaround erroneous numeric interpretation of +"0x" return high !== high || escapedWhitespace ? escaped : high < 0 ? // BMP codepoint String.fromCharCode( high + 0x10000 ) : // Supplemental Plane codepoint (surrogate pair) String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); }, // CSS string/identifier serialization // path_to_url#common-serializing-idioms rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, fcssescape = function( ch, asCodePoint ) { if ( asCodePoint ) { // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER if ( ch === "\0" ) { return "\uFFFD"; } // Control characters and (dependent upon position) numbers get escaped as code points return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; } // Other potentially-special ASCII characters get backslash-escaped return "\\" + ch; }, // Used for iframes // See setDocument() // Removing the function wrapper causes a "Permission Denied" // error in IE unloadHandler = function() { setDocument(); }, disabledAncestor = addCombinator( function( elem ) { return elem.disabled === true && ("form" in elem || "label" in elem); }, { dir: "parentNode", next: "legend" } ); // Optimize for push.apply( _, NodeList ) try { push.apply( (arr = slice.call( preferredDoc.childNodes )), preferredDoc.childNodes ); // Support: Android<4.0 // Detect silently failing push.apply arr[ preferredDoc.childNodes.length ].nodeType; } catch ( e ) { push = { apply: arr.length ? // Leverage slice if possible function( target, els ) { push_native.apply( target, slice.call(els) ); } : // Support: IE<9 // Otherwise append directly function( target, els ) { var j = target.length, i = 0; // Can't trust NodeList.length while ( (target[j++] = els[i++]) ) {} target.length = j - 1; } }; } function Sizzle( selector, context, results, seed ) { var m, i, elem, nid, match, groups, newSelector, newContext = context && context.ownerDocument, // nodeType defaults to 9, since context defaults to document nodeType = context ? context.nodeType : 9; results = results || []; // Return early from calls with invalid selector or context if ( typeof selector !== "string" || !selector || nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) { return results; } // Try to shortcut find operations (as opposed to filters) in HTML documents if ( !seed ) { if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { setDocument( context ); } context = context || document; if ( documentIsHTML ) { // If the selector is sufficiently simple, try using a "get*By*" DOM method // (excepting DocumentFragment context, where the methods don't exist) if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { // ID selector if ( (m = match[1]) ) { // Document context if ( nodeType === 9 ) { if ( (elem = context.getElementById( m )) ) { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( elem.id === m ) { results.push( elem ); return results; } } else { return results; } // Element context } else { // Support: IE, Opera, Webkit // TODO: identify versions // getElementById can match elements by name instead of ID if ( newContext && (elem = newContext.getElementById( m )) && contains( context, elem ) && elem.id === m ) { results.push( elem ); return results; } } // Type selector } else if ( match[2] ) { push.apply( results, context.getElementsByTagName( selector ) ); return results; // Class selector } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { push.apply( results, context.getElementsByClassName( m ) ); return results; } } // Take advantage of querySelectorAll if ( support.qsa && !compilerCache[ selector + " " ] && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { if ( nodeType !== 1 ) { newContext = context; newSelector = selector; // qSA looks outside Element context, which is not what we want // Thanks to Andrew Dupont for this workaround technique // Support: IE <=8 // Exclude object elements } else if ( context.nodeName.toLowerCase() !== "object" ) { // Capture the context ID, setting it first if necessary if ( (nid = context.getAttribute( "id" )) ) { nid = nid.replace( rcssescape, fcssescape ); } else { context.setAttribute( "id", (nid = expando) ); } // Prefix every selector in the list groups = tokenize( selector ); i = groups.length; while ( i-- ) { groups[i] = "#" + nid + " " + toSelector( groups[i] ); } newSelector = groups.join( "," ); // Expand context for sibling selectors newContext = rsibling.test( selector ) && testContext( context.parentNode ) || context; } if ( newSelector ) { try { push.apply( results, newContext.querySelectorAll( newSelector ) ); return results; } catch ( qsaError ) { } finally { if ( nid === expando ) { context.removeAttribute( "id" ); } } } } } } // All others return select( selector.replace( rtrim, "$1" ), context, results, seed ); } /** * Create key-value caches of limited size * @returns {function(string, object)} Returns the Object data after storing it on itself with * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) * deleting the oldest entry */ function createCache() { var keys = []; function cache( key, value ) { // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) if ( keys.push( key + " " ) > Expr.cacheLength ) { // Only keep the most recent entries delete cache[ keys.shift() ]; } return (cache[ key + " " ] = value); } return cache; } /** * Mark a function for special use by Sizzle * @param {Function} fn The function to mark */ function markFunction( fn ) { fn[ expando ] = true; return fn; } /** * Support testing using an element * @param {Function} fn Passed the created element and returns a boolean result */ function assert( fn ) { var el = document.createElement("fieldset"); try { return !!fn( el ); } catch (e) { return false; } finally { // Remove from its parent by default if ( el.parentNode ) { el.parentNode.removeChild( el ); } // release memory in IE el = null; } } /** * Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied */ function addHandle( attrs, handler ) { var arr = attrs.split("|"), i = arr.length; while ( i-- ) { Expr.attrHandle[ arr[i] ] = handler; } } /** * Checks document order of two siblings * @param {Element} a * @param {Element} b * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b */ function siblingCheck( a, b ) { var cur = b && a, diff = cur && a.nodeType === 1 && b.nodeType === 1 && a.sourceIndex - b.sourceIndex; // Use IE sourceIndex if available on both nodes if ( diff ) { return diff; } // Check if b follows a if ( cur ) { while ( (cur = cur.nextSibling) ) { if ( cur === b ) { return -1; } } } return a ? 1 : -1; } /** * Returns a function to use in pseudos for input types * @param {String} type */ function createInputPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === type; }; } /** * Returns a function to use in pseudos for buttons * @param {String} type */ function createButtonPseudo( type ) { return function( elem ) { var name = elem.nodeName.toLowerCase(); return (name === "input" || name === "button") && elem.type === type; }; } /** * Returns a function to use in pseudos for :enabled/:disabled * @param {Boolean} disabled true for :disabled; false for :enabled */ function createDisabledPseudo( disabled ) { // Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable return function( elem ) { // Only certain elements can match :enabled or :disabled // path_to_url#selector-enabled // path_to_url#selector-disabled if ( "form" in elem ) { // Check for inherited disabledness on relevant non-disabled elements: // * listed form-associated elements in a disabled fieldset // path_to_url#category-listed // path_to_url#concept-fe-disabled // * option elements in a disabled optgroup // path_to_url#concept-option-disabled // All such elements have a "form" property. if ( elem.parentNode && elem.disabled === false ) { // Option elements defer to a parent optgroup if present if ( "label" in elem ) { if ( "label" in elem.parentNode ) { return elem.parentNode.disabled === disabled; } else { return elem.disabled === disabled; } } // Support: IE 6 - 11 // Use the isDisabled shortcut property to check for disabled fieldset ancestors return elem.isDisabled === disabled || // Where there is no isDisabled, check manually /* jshint -W018 */ elem.isDisabled !== !disabled && disabledAncestor( elem ) === disabled; } return elem.disabled === disabled; // Try to winnow out elements that can't be disabled before trusting the disabled property. // Some victims get caught in our net (label, legend, menu, track), but it shouldn't // even exist on them, let alone have a boolean value. } else if ( "label" in elem ) { return elem.disabled === disabled; } // Remaining elements are neither :enabled nor :disabled return false; }; } /** * Returns a function to use in pseudos for positionals * @param {Function} fn */ function createPositionalPseudo( fn ) { return markFunction(function( argument ) { argument = +argument; return markFunction(function( seed, matches ) { var j, matchIndexes = fn( [], seed.length, argument ), i = matchIndexes.length; // Match elements found at the specified indexes while ( i-- ) { if ( seed[ (j = matchIndexes[i]) ] ) { seed[j] = !(matches[j] = seed[j]); } } }); }); } /** * Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value */ function testContext( context ) { return context && typeof context.getElementsByTagName !== "undefined" && context; } // Expose support vars for convenience support = Sizzle.support = {}; /** * Detects XML nodes * @param {Element|Object} elem An element or a document * @returns {Boolean} True iff elem is a non-HTML XML node */ isXML = Sizzle.isXML = function( elem ) { // documentElement is verified for cases where it doesn't yet exist // (such as loading iframes in IE - #4833) var documentElement = elem && (elem.ownerDocument || elem).documentElement; return documentElement ? documentElement.nodeName !== "HTML" : false; }; /** * Sets document-related variables once based on the current document * @param {Element|Object} [doc] An element or document object to use to set the document * @returns {Object} Returns the current document */ setDocument = Sizzle.setDocument = function( node ) { var hasCompare, subWindow, doc = node ? node.ownerDocument || node : preferredDoc; // Return early if doc is invalid or already selected if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { return document; } // Update global variables document = doc; docElem = document.documentElement; documentIsHTML = !isXML( document ); // Support: IE 9-11, Edge // Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936) if ( preferredDoc !== document && (subWindow = document.defaultView) && subWindow.top !== subWindow ) { // Support: IE 11, Edge if ( subWindow.addEventListener ) { subWindow.addEventListener( "unload", unloadHandler, false ); // Support: IE 9 - 10 only } else if ( subWindow.attachEvent ) { subWindow.attachEvent( "onunload", unloadHandler ); } } /* Attributes your_sha256_hash------ */ // Support: IE<8 // Verify that getAttribute really returns attributes and not properties // (excepting IE8 booleans) support.attributes = assert(function( el ) { el.className = "i"; return !el.getAttribute("className"); }); /* getElement(s)By* your_sha256_hash------ */ // Check if getElementsByTagName("*") returns only elements support.getElementsByTagName = assert(function( el ) { el.appendChild( document.createComment("") ); return !el.getElementsByTagName("*").length; }); // Support: IE<9 support.getElementsByClassName = rnative.test( document.getElementsByClassName ); // Support: IE<10 // Check if getElementById returns elements by name // The broken getElementById methods don't pick up programmatically-set names, // so use a roundabout getElementsByName test support.getById = assert(function( el ) { docElem.appendChild( el ).id = expando; return !document.getElementsByName || !document.getElementsByName( expando ).length; }); // ID filter and find if ( support.getById ) { Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { return elem.getAttribute("id") === attrId; }; }; Expr.find["ID"] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var elem = context.getElementById( id ); return elem ? [ elem ] : []; } }; } else { Expr.filter["ID"] = function( id ) { var attrId = id.replace( runescape, funescape ); return function( elem ) { var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id"); return node && node.value === attrId; }; }; // Support: IE 6 - 7 only // getElementById is not reliable as a find shortcut Expr.find["ID"] = function( id, context ) { if ( typeof context.getElementById !== "undefined" && documentIsHTML ) { var node, i, elems, elem = context.getElementById( id ); if ( elem ) { // Verify the id attribute node = elem.getAttributeNode("id"); if ( node && node.value === id ) { return [ elem ]; } // Fall back on getElementsByName elems = context.getElementsByName( id ); i = 0; while ( (elem = elems[i++]) ) { node = elem.getAttributeNode("id"); if ( node && node.value === id ) { return [ elem ]; } } } return []; } }; } // Tag Expr.find["TAG"] = support.getElementsByTagName ? function( tag, context ) { if ( typeof context.getElementsByTagName !== "undefined" ) { return context.getElementsByTagName( tag ); // DocumentFragment nodes don't have gEBTN } else if ( support.qsa ) { return context.querySelectorAll( tag ); } } : function( tag, context ) { var elem, tmp = [], i = 0, // By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too results = context.getElementsByTagName( tag ); // Filter out possible comments if ( tag === "*" ) { while ( (elem = results[i++]) ) { if ( elem.nodeType === 1 ) { tmp.push( elem ); } } return tmp; } return results; }; // Class Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) { return context.getElementsByClassName( className ); } }; /* QSA/matchesSelector your_sha256_hash------ */ // QSA and matchesSelector support // matchesSelector(:active) reports false when true (IE9/Opera 11.5) rbuggyMatches = []; // qSa(:focus) reports false when true (Chrome 21) // We allow this because of a bug in IE8/9 that throws an error // whenever `document.activeElement` is accessed on an iframe // So, we allow :focus to pass through QSA all the time to avoid the IE error // See path_to_url rbuggyQSA = []; if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { // Build QSA regex // Regex strategy adopted from Diego Perini assert(function( el ) { // Select is set to empty string on purpose // This is to test IE's treatment of not explicitly // setting a boolean content attribute, // since its presence should be enough // path_to_url docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" + "<select id='" + expando + "-\r\\' msallowcapture=''>" + "<option selected=''></option></select>"; // Support: IE8, Opera 11-12.16 // Nothing should be selected when empty strings follow ^= or $= or *= // The test attribute must be unknown in Opera but "safe" for WinRT // path_to_url#attribute_section if ( el.querySelectorAll("[msallowcapture^='']").length ) { rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); } // Support: IE8 // Boolean attributes and "value" are not treated correctly if ( !el.querySelectorAll("[selected]").length ) { rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); } // Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+ if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) { rbuggyQSA.push("~="); } // Webkit/Opera - :checked should return selected option elements // path_to_url#checked // IE8 throws error here and will not see later tests if ( !el.querySelectorAll(":checked").length ) { rbuggyQSA.push(":checked"); } // Support: Safari 8+, iOS 8+ // path_to_url // In-page `selector#id sibling-combinator selector` fails if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) { rbuggyQSA.push(".#.+[+~]"); } }); assert(function( el ) { el.innerHTML = "<a href='' disabled='disabled'></a>" + "<select disabled='disabled'><option/></select>"; // Support: Windows 8 Native Apps // The type and name attributes are restricted during .innerHTML assignment var input = document.createElement("input"); input.setAttribute( "type", "hidden" ); el.appendChild( input ).setAttribute( "name", "D" ); // Support: IE8 // Enforce case-sensitivity of name attribute if ( el.querySelectorAll("[name=d]").length ) { rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" ); } // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) // IE8 throws error here and will not see later tests if ( el.querySelectorAll(":enabled").length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Support: IE9-11+ // IE's :disabled selector does not pick up the children of disabled fieldsets docElem.appendChild( el ).disabled = true; if ( el.querySelectorAll(":disabled").length !== 2 ) { rbuggyQSA.push( ":enabled", ":disabled" ); } // Opera 10-11 does not throw on post-comma invalid pseudos el.querySelectorAll("*,:x"); rbuggyQSA.push(",.*:"); }); } if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || docElem.webkitMatchesSelector || docElem.mozMatchesSelector || docElem.oMatchesSelector || docElem.msMatchesSelector) )) ) { assert(function( el ) { // Check to see if it's possible to do matchesSelector // on a disconnected node (IE 9) support.disconnectedMatch = matches.call( el, "*" ); // This should fail with an exception // Gecko does not error, returns false instead matches.call( el, "[s!='']:x" ); rbuggyMatches.push( "!=", pseudos ); }); } rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); /* Contains your_sha256_hash------ */ hasCompare = rnative.test( docElem.compareDocumentPosition ); // Element contains another // Purposefully self-exclusive // As in, an element does not contain itself contains = hasCompare || rnative.test( docElem.contains ) ? function( a, b ) { var adown = a.nodeType === 9 ? a.documentElement : a, bup = b && b.parentNode; return a === bup || !!( bup && bup.nodeType === 1 && ( adown.contains ? adown.contains( bup ) : a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 )); } : function( a, b ) { if ( b ) { while ( (b = b.parentNode) ) { if ( b === a ) { return true; } } } return false; }; /* Sorting your_sha256_hash------ */ // Document order sorting sortOrder = hasCompare ? function( a, b ) { // Flag for duplicate removal if ( a === b ) { hasDuplicate = true; return 0; } // Sort on method existence if only one input has compareDocumentPosition var compare = !a.compareDocumentPosition - !b.compareDocumentPosition; if ( compare ) { return compare; } // Calculate position if both inputs belong to the same document compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ? a.compareDocumentPosition( b ) : // Otherwise we know they are disconnected 1; // Disconnected nodes if ( compare & 1 || (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { // Choose the first element that is related to our preferred document if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) { return -1; } if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) { return 1; } // Maintain original order return sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; } return compare & 4 ? -1 : 1; } : function( a, b ) { // Exit early if the nodes are identical if ( a === b ) { hasDuplicate = true; return 0; } var cur, i = 0, aup = a.parentNode, bup = b.parentNode, ap = [ a ], bp = [ b ]; // Parentless nodes are either documents or disconnected if ( !aup || !bup ) { return a === document ? -1 : b === document ? 1 : aup ? -1 : bup ? 1 : sortInput ? ( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) : 0; // If the nodes are siblings, we can do a quick check } else if ( aup === bup ) { return siblingCheck( a, b ); } // Otherwise we need full lists of their ancestors for comparison cur = a; while ( (cur = cur.parentNode) ) { ap.unshift( cur ); } cur = b; while ( (cur = cur.parentNode) ) { bp.unshift( cur ); } // Walk down the tree looking for a discrepancy while ( ap[i] === bp[i] ) { i++; } return i ? // Do a sibling check if the nodes have a common ancestor siblingCheck( ap[i], bp[i] ) : // Otherwise nodes in our document sort first ap[i] === preferredDoc ? -1 : bp[i] === preferredDoc ? 1 : 0; }; return document; }; Sizzle.matches = function( expr, elements ) { return Sizzle( expr, null, null, elements ); }; Sizzle.matchesSelector = function( elem, expr ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } // Make sure that attribute selectors are quoted expr = expr.replace( rattributeQuotes, "='$1']" ); if ( support.matchesSelector && documentIsHTML && !compilerCache[ expr + " " ] && ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { try { var ret = matches.call( elem, expr ); // IE 9's matchesSelector returns false on disconnected nodes if ( ret || support.disconnectedMatch || // As well, disconnected nodes are said to be in a document // fragment in IE 9 elem.document && elem.document.nodeType !== 11 ) { return ret; } } catch (e) {} } return Sizzle( expr, document, null, [ elem ] ).length > 0; }; Sizzle.contains = function( context, elem ) { // Set document vars if needed if ( ( context.ownerDocument || context ) !== document ) { setDocument( context ); } return contains( context, elem ); }; Sizzle.attr = function( elem, name ) { // Set document vars if needed if ( ( elem.ownerDocument || elem ) !== document ) { setDocument( elem ); } var fn = Expr.attrHandle[ name.toLowerCase() ], // Don't get fooled by Object.prototype properties (jQuery #13807) val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? fn( elem, name, !documentIsHTML ) : undefined; return val !== undefined ? val : support.attributes || !documentIsHTML ? elem.getAttribute( name ) : (val = elem.getAttributeNode(name)) && val.specified ? val.value : null; }; Sizzle.escape = function( sel ) { return (sel + "").replace( rcssescape, fcssescape ); }; Sizzle.error = function( msg ) { throw new Error( "Syntax error, unrecognized expression: " + msg ); }; /** * Document sorting and removing duplicates * @param {ArrayLike} results */ Sizzle.uniqueSort = function( results ) { var elem, duplicates = [], j = 0, i = 0; // Unless we *know* we can detect duplicates, assume their presence hasDuplicate = !support.detectDuplicates; sortInput = !support.sortStable && results.slice( 0 ); results.sort( sortOrder ); if ( hasDuplicate ) { while ( (elem = results[i++]) ) { if ( elem === results[ i ] ) { j = duplicates.push( i ); } } while ( j-- ) { results.splice( duplicates[ j ], 1 ); } } // Clear input after sorting to release objects // See path_to_url sortInput = null; return results; }; /** * Utility function for retrieving the text value of an array of DOM nodes * @param {Array|Element} elem */ getText = Sizzle.getText = function( elem ) { var node, ret = "", i = 0, nodeType = elem.nodeType; if ( !nodeType ) { // If no nodeType, this is expected to be an array while ( (node = elem[i++]) ) { // Do not traverse comment nodes ret += getText( node ); } } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { // Use textContent for elements // innerText usage removed for consistency of new lines (jQuery #11153) if ( typeof elem.textContent === "string" ) { return elem.textContent; } else { // Traverse its children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { ret += getText( elem ); } } } else if ( nodeType === 3 || nodeType === 4 ) { return elem.nodeValue; } // Do not include comment or processing instruction nodes return ret; }; Expr = Sizzle.selectors = { // Can be adjusted by the user cacheLength: 50, createPseudo: markFunction, match: matchExpr, attrHandle: {}, find: {}, relative: { ">": { dir: "parentNode", first: true }, " ": { dir: "parentNode" }, "+": { dir: "previousSibling", first: true }, "~": { dir: "previousSibling" } }, preFilter: { "ATTR": function( match ) { match[1] = match[1].replace( runescape, funescape ); // Move the given value to match[3] whether quoted or unquoted match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape ); if ( match[2] === "~=" ) { match[3] = " " + match[3] + " "; } return match.slice( 0, 4 ); }, "CHILD": function( match ) { /* matches from matchExpr["CHILD"] 1 type (only|nth|...) 2 what (child|of-type) 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) 4 xn-component of xn+y argument ([+-]?\d*n|) 5 sign of xn-component 6 x of xn-component 7 sign of y-component 8 y of y-component */ match[1] = match[1].toLowerCase(); if ( match[1].slice( 0, 3 ) === "nth" ) { // nth-* requires argument if ( !match[3] ) { Sizzle.error( match[0] ); } // numeric x and y parameters for Expr.filter.CHILD // remember that false/true cast respectively to 0/1 match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); // other types prohibit arguments } else if ( match[3] ) { Sizzle.error( match[0] ); } return match; }, "PSEUDO": function( match ) { var excess, unquoted = !match[6] && match[2]; if ( matchExpr["CHILD"].test( match[0] ) ) { return null; } // Accept quoted arguments as-is if ( match[3] ) { match[2] = match[4] || match[5] || ""; // Strip excess characters from unquoted arguments } else if ( unquoted && rpseudo.test( unquoted ) && // Get excess from tokenize (recursively) (excess = tokenize( unquoted, true )) && // advance to the next closing parenthesis (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { // excess is a negative index match[0] = match[0].slice( 0, excess ); match[2] = unquoted.slice( 0, excess ); } // Return only captures needed by the pseudo filter method (type and argument) return match.slice( 0, 3 ); } }, filter: { "TAG": function( nodeNameSelector ) { var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); return nodeNameSelector === "*" ? function() { return true; } : function( elem ) { return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; }; }, "CLASS": function( className ) { var pattern = classCache[ className + " " ]; return pattern || (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && classCache( className, function( elem ) { return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" ); }); }, "ATTR": function( name, operator, check ) { return function( elem ) { var result = Sizzle.attr( elem, name ); if ( result == null ) { return operator === "!="; } if ( !operator ) { return true; } result += ""; return operator === "=" ? result === check : operator === "!=" ? result !== check : operator === "^=" ? check && result.indexOf( check ) === 0 : operator === "*=" ? check && result.indexOf( check ) > -1 : operator === "$=" ? check && result.slice( -check.length ) === check : operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 : operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : false; }; }, "CHILD": function( type, what, argument, first, last ) { var simple = type.slice( 0, 3 ) !== "nth", forward = type.slice( -4 ) !== "last", ofType = what === "of-type"; return first === 1 && last === 0 ? // Shortcut for :nth-*(n) function( elem ) { return !!elem.parentNode; } : function( elem, context, xml ) { var cache, uniqueCache, outerCache, node, nodeIndex, start, dir = simple !== forward ? "nextSibling" : "previousSibling", parent = elem.parentNode, name = ofType && elem.nodeName.toLowerCase(), useCache = !xml && !ofType, diff = false; if ( parent ) { // :(first|last|only)-(child|of-type) if ( simple ) { while ( dir ) { node = elem; while ( (node = node[ dir ]) ) { if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { return false; } } // Reverse direction for :only-* (if we haven't yet done so) start = dir = type === "only" && !start && "nextSibling"; } return true; } start = [ forward ? parent.firstChild : parent.lastChild ]; // non-xml :nth-child(...) stores cache data on `parent` if ( forward && useCache ) { // Seek `elem` from a previously-cached index // ...in a gzip-friendly way node = parent; outerCache = node[ expando ] || (node[ expando ] = {}); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || (outerCache[ node.uniqueID ] = {}); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex && cache[ 2 ]; node = nodeIndex && parent.childNodes[ nodeIndex ]; while ( (node = ++nodeIndex && node && node[ dir ] || // Fallback to seeking `elem` from the start (diff = nodeIndex = 0) || start.pop()) ) { // When found, cache indexes on `parent` and break if ( node.nodeType === 1 && ++diff && node === elem ) { uniqueCache[ type ] = [ dirruns, nodeIndex, diff ]; break; } } } else { // Use previously-cached element index if available if ( useCache ) { // ...in a gzip-friendly way node = elem; outerCache = node[ expando ] || (node[ expando ] = {}); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || (outerCache[ node.uniqueID ] = {}); cache = uniqueCache[ type ] || []; nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ]; diff = nodeIndex; } // xml :nth-child(...) // or :nth-last-child(...) or :nth(-last)?-of-type(...) if ( diff === false ) { // Use the same loop as above to seek `elem` from the start while ( (node = ++nodeIndex && node && node[ dir ] || (diff = nodeIndex = 0) || start.pop()) ) { if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { // Cache the index of each encountered element if ( useCache ) { outerCache = node[ expando ] || (node[ expando ] = {}); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ node.uniqueID ] || (outerCache[ node.uniqueID ] = {}); uniqueCache[ type ] = [ dirruns, diff ]; } if ( node === elem ) { break; } } } } } // Incorporate the offset, then check against cycle size diff -= last; return diff === first || ( diff % first === 0 && diff / first >= 0 ); } }; }, "PSEUDO": function( pseudo, argument ) { // pseudo-class names are case-insensitive // path_to_url#pseudo-classes // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters // Remember that setFilters inherits from pseudos var args, fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || Sizzle.error( "unsupported pseudo: " + pseudo ); // The user may use createPseudo to indicate that // arguments are needed to create the filter function // just as Sizzle does if ( fn[ expando ] ) { return fn( argument ); } // But maintain support for old signatures if ( fn.length > 1 ) { args = [ pseudo, pseudo, "", argument ]; return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? markFunction(function( seed, matches ) { var idx, matched = fn( seed, argument ), i = matched.length; while ( i-- ) { idx = indexOf( seed, matched[i] ); seed[ idx ] = !( matches[ idx ] = matched[i] ); } }) : function( elem ) { return fn( elem, 0, args ); }; } return fn; } }, pseudos: { // Potentially complex pseudos "not": markFunction(function( selector ) { // Trim the selector passed to compile // to avoid treating leading and trailing // spaces as combinators var input = [], results = [], matcher = compile( selector.replace( rtrim, "$1" ) ); return matcher[ expando ] ? markFunction(function( seed, matches, context, xml ) { var elem, unmatched = matcher( seed, null, xml, [] ), i = seed.length; // Match elements unmatched by `matcher` while ( i-- ) { if ( (elem = unmatched[i]) ) { seed[i] = !(matches[i] = elem); } } }) : function( elem, context, xml ) { input[0] = elem; matcher( input, null, xml, results ); // Don't keep the element (issue #299) input[0] = null; return !results.pop(); }; }), "has": markFunction(function( selector ) { return function( elem ) { return Sizzle( selector, elem ).length > 0; }; }), "contains": markFunction(function( text ) { text = text.replace( runescape, funescape ); return function( elem ) { return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; }; }), // "Whether an element is represented by a :lang() selector // is based solely on the element's language value // being equal to the identifier C, // or beginning with the identifier C immediately followed by "-". // The matching of C against the element's language value is performed case-insensitively. // The identifier C does not have to be a valid language name." // path_to_url#lang-pseudo "lang": markFunction( function( lang ) { // lang value must be a valid identifier if ( !ridentifier.test(lang || "") ) { Sizzle.error( "unsupported lang: " + lang ); } lang = lang.replace( runescape, funescape ).toLowerCase(); return function( elem ) { var elemLang; do { if ( (elemLang = documentIsHTML ? elem.lang : elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { elemLang = elemLang.toLowerCase(); return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; } } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); return false; }; }), // Miscellaneous "target": function( elem ) { var hash = window.location && window.location.hash; return hash && hash.slice( 1 ) === elem.id; }, "root": function( elem ) { return elem === docElem; }, "focus": function( elem ) { return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); }, // Boolean properties "enabled": createDisabledPseudo( false ), "disabled": createDisabledPseudo( true ), "checked": function( elem ) { // In CSS3, :checked should return both checked and selected elements // path_to_url#checked var nodeName = elem.nodeName.toLowerCase(); return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); }, "selected": function( elem ) { // Accessing this property makes selected-by-default // options in Safari work properly if ( elem.parentNode ) { elem.parentNode.selectedIndex; } return elem.selected === true; }, // Contents "empty": function( elem ) { // path_to_url#empty-pseudo // :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5), // but not by others (comment: 8; processing instruction: 7; etc.) // nodeType < 6 works because attributes (2) do not appear as children for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { if ( elem.nodeType < 6 ) { return false; } } return true; }, "parent": function( elem ) { return !Expr.pseudos["empty"]( elem ); }, // Element/input types "header": function( elem ) { return rheader.test( elem.nodeName ); }, "input": function( elem ) { return rinputs.test( elem.nodeName ); }, "button": function( elem ) { var name = elem.nodeName.toLowerCase(); return name === "input" && elem.type === "button" || name === "button"; }, "text": function( elem ) { var attr; return elem.nodeName.toLowerCase() === "input" && elem.type === "text" && // Support: IE<8 // New HTML5 attribute values (e.g., "search") appear with elem.type === "text" ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" ); }, // Position-in-collection "first": createPositionalPseudo(function() { return [ 0 ]; }), "last": createPositionalPseudo(function( matchIndexes, length ) { return [ length - 1 ]; }), "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { return [ argument < 0 ? argument + length : argument ]; }), "even": createPositionalPseudo(function( matchIndexes, length ) { var i = 0; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "odd": createPositionalPseudo(function( matchIndexes, length ) { var i = 1; for ( ; i < length; i += 2 ) { matchIndexes.push( i ); } return matchIndexes; }), "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; --i >= 0; ) { matchIndexes.push( i ); } return matchIndexes; }), "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { var i = argument < 0 ? argument + length : argument; for ( ; ++i < length; ) { matchIndexes.push( i ); } return matchIndexes; }) } }; Expr.pseudos["nth"] = Expr.pseudos["eq"]; // Add button/input type pseudos for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { Expr.pseudos[ i ] = createInputPseudo( i ); } for ( i in { submit: true, reset: true } ) { Expr.pseudos[ i ] = createButtonPseudo( i ); } // Easy API for creating new setFilters function setFilters() {} setFilters.prototype = Expr.filters = Expr.pseudos; Expr.setFilters = new setFilters(); tokenize = Sizzle.tokenize = function( selector, parseOnly ) { var matched, match, tokens, type, soFar, groups, preFilters, cached = tokenCache[ selector + " " ]; if ( cached ) { return parseOnly ? 0 : cached.slice( 0 ); } soFar = selector; groups = []; preFilters = Expr.preFilter; while ( soFar ) { // Comma and first run if ( !matched || (match = rcomma.exec( soFar )) ) { if ( match ) { // Don't consume trailing commas as valid soFar = soFar.slice( match[0].length ) || soFar; } groups.push( (tokens = []) ); } matched = false; // Combinators if ( (match = rcombinators.exec( soFar )) ) { matched = match.shift(); tokens.push({ value: matched, // Cast descendant combinators to space type: match[0].replace( rtrim, " " ) }); soFar = soFar.slice( matched.length ); } // Filters for ( type in Expr.filter ) { if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || (match = preFilters[ type ]( match ))) ) { matched = match.shift(); tokens.push({ value: matched, type: type, matches: match }); soFar = soFar.slice( matched.length ); } } if ( !matched ) { break; } } // Return the length of the invalid excess // if we're just parsing // Otherwise, throw an error or return tokens return parseOnly ? soFar.length : soFar ? Sizzle.error( selector ) : // Cache the tokens tokenCache( selector, groups ).slice( 0 ); }; function toSelector( tokens ) { var i = 0, len = tokens.length, selector = ""; for ( ; i < len; i++ ) { selector += tokens[i].value; } return selector; } function addCombinator( matcher, combinator, base ) { var dir = combinator.dir, skip = combinator.next, key = skip || dir, checkNonElements = base && key === "parentNode", doneName = done++; return combinator.first ? // Check against closest ancestor/preceding element function( elem, context, xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { return matcher( elem, context, xml ); } } return false; } : // Check against all ancestor/preceding elements function( elem, context, xml ) { var oldCache, uniqueCache, outerCache, newCache = [ dirruns, doneName ]; // We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching if ( xml ) { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { if ( matcher( elem, context, xml ) ) { return true; } } } } else { while ( (elem = elem[ dir ]) ) { if ( elem.nodeType === 1 || checkNonElements ) { outerCache = elem[ expando ] || (elem[ expando ] = {}); // Support: IE <9 only // Defend against cloned attroperties (jQuery gh-1709) uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {}); if ( skip && skip === elem.nodeName.toLowerCase() ) { elem = elem[ dir ] || elem; } else if ( (oldCache = uniqueCache[ key ]) && oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) { // Assign to newCache so results back-propagate to previous elements return (newCache[ 2 ] = oldCache[ 2 ]); } else { // Reuse newcache so results back-propagate to previous elements uniqueCache[ key ] = newCache; // A match means we're done; a fail means we have to keep checking if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) { return true; } } } } } return false; }; } function elementMatcher( matchers ) { return matchers.length > 1 ? function( elem, context, xml ) { var i = matchers.length; while ( i-- ) { if ( !matchers[i]( elem, context, xml ) ) { return false; } } return true; } : matchers[0]; } function multipleContexts( selector, contexts, results ) { var i = 0, len = contexts.length; for ( ; i < len; i++ ) { Sizzle( selector, contexts[i], results ); } return results; } function condense( unmatched, map, filter, context, xml ) { var elem, newUnmatched = [], i = 0, len = unmatched.length, mapped = map != null; for ( ; i < len; i++ ) { if ( (elem = unmatched[i]) ) { if ( !filter || filter( elem, context, xml ) ) { newUnmatched.push( elem ); if ( mapped ) { map.push( i ); } } } } return newUnmatched; } function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { if ( postFilter && !postFilter[ expando ] ) { postFilter = setMatcher( postFilter ); } if ( postFinder && !postFinder[ expando ] ) { postFinder = setMatcher( postFinder, postSelector ); } return markFunction(function( seed, results, context, xml ) { var temp, i, elem, preMap = [], postMap = [], preexisting = results.length, // Get initial elements from seed or context elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), // Prefilter to get matcher input, preserving a map for seed-results synchronization matcherIn = preFilter && ( seed || !selector ) ? condense( elems, preMap, preFilter, context, xml ) : elems, matcherOut = matcher ? // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, postFinder || ( seed ? preFilter : preexisting || postFilter ) ? // ...intermediate processing is necessary [] : // ...otherwise use results directly results : matcherIn; // Find primary matches if ( matcher ) { matcher( matcherIn, matcherOut, context, xml ); } // Apply postFilter if ( postFilter ) { temp = condense( matcherOut, postMap ); postFilter( temp, [], context, xml ); // Un-match failing elements by moving them back to matcherIn i = temp.length; while ( i-- ) { if ( (elem = temp[i]) ) { matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); } } } if ( seed ) { if ( postFinder || preFilter ) { if ( postFinder ) { // Get the final matcherOut by condensing this intermediate into postFinder contexts temp = []; i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) ) { // Restore matcherIn since elem is not yet a final match temp.push( (matcherIn[i] = elem) ); } } postFinder( null, (matcherOut = []), temp, xml ); } // Move matched elements from seed to results to keep them synchronized i = matcherOut.length; while ( i-- ) { if ( (elem = matcherOut[i]) && (temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) { seed[temp] = !(results[temp] = elem); } } } // Add elements to results, through postFinder if defined } else { matcherOut = condense( matcherOut === results ? matcherOut.splice( preexisting, matcherOut.length ) : matcherOut ); if ( postFinder ) { postFinder( null, results, matcherOut, xml ); } else { push.apply( results, matcherOut ); } } }); } function matcherFromTokens( tokens ) { var checkContext, matcher, j, len = tokens.length, leadingRelative = Expr.relative[ tokens[0].type ], implicitRelative = leadingRelative || Expr.relative[" "], i = leadingRelative ? 1 : 0, // The foundational matcher ensures that elements are reachable from top-level context(s) matchContext = addCombinator( function( elem ) { return elem === checkContext; }, implicitRelative, true ), matchAnyContext = addCombinator( function( elem ) { return indexOf( checkContext, elem ) > -1; }, implicitRelative, true ), matchers = [ function( elem, context, xml ) { var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( (checkContext = context).nodeType ? matchContext( elem, context, xml ) : matchAnyContext( elem, context, xml ) ); // Avoid hanging onto element (issue #299) checkContext = null; return ret; } ]; for ( ; i < len; i++ ) { if ( (matcher = Expr.relative[ tokens[i].type ]) ) { matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; } else { matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); // Return special upon seeing a positional matcher if ( matcher[ expando ] ) { // Find the next relative operator (if any) for proper handling j = ++i; for ( ; j < len; j++ ) { if ( Expr.relative[ tokens[j].type ] ) { break; } } return setMatcher( i > 1 && elementMatcher( matchers ), i > 1 && toSelector( // If the preceding token was a descendant combinator, insert an implicit any-element `*` tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) ).replace( rtrim, "$1" ), matcher, i < j && matcherFromTokens( tokens.slice( i, j ) ), j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), j < len && toSelector( tokens ) ); } matchers.push( matcher ); } } return elementMatcher( matchers ); } function matcherFromGroupMatchers( elementMatchers, setMatchers ) { var bySet = setMatchers.length > 0, byElement = elementMatchers.length > 0, superMatcher = function( seed, context, xml, results, outermost ) { var elem, j, matcher, matchedCount = 0, i = "0", unmatched = seed && [], setMatched = [], contextBackup = outermostContext, // We must always have either seed elements or outermost context elems = seed || byElement && Expr.find["TAG"]( "*", outermost ), // Use integer dirruns iff this is the outermost matcher dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1), len = elems.length; if ( outermost ) { outermostContext = context === document || context || outermost; } // Add elements passing elementMatchers directly to results // Support: IE<9, Safari // Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id for ( ; i !== len && (elem = elems[i]) != null; i++ ) { if ( byElement && elem ) { j = 0; if ( !context && elem.ownerDocument !== document ) { setDocument( elem ); xml = !documentIsHTML; } while ( (matcher = elementMatchers[j++]) ) { if ( matcher( elem, context || document, xml) ) { results.push( elem ); break; } } if ( outermost ) { dirruns = dirrunsUnique; } } // Track unmatched elements for set filters if ( bySet ) { // They will have gone through all possible matchers if ( (elem = !matcher && elem) ) { matchedCount--; } // Lengthen the array for every element, matched or not if ( seed ) { unmatched.push( elem ); } } } // `i` is now the count of elements visited above, and adding it to `matchedCount` // makes the latter nonnegative. matchedCount += i; // Apply set filters to unmatched elements // NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount` // equals `i`), unless we didn't visit _any_ elements in the above loop because we have // no element matchers and no seed. // Incrementing an initially-string "0" `i` allows `i` to remain a string only in that // case, which will result in a "00" `matchedCount` that differs from `i` but is also // numerically zero. if ( bySet && i !== matchedCount ) { j = 0; while ( (matcher = setMatchers[j++]) ) { matcher( unmatched, setMatched, context, xml ); } if ( seed ) { // Reintegrate element matches to eliminate the need for sorting if ( matchedCount > 0 ) { while ( i-- ) { if ( !(unmatched[i] || setMatched[i]) ) { setMatched[i] = pop.call( results ); } } } // Discard index placeholder values to get only actual matches setMatched = condense( setMatched ); } // Add matches to results push.apply( results, setMatched ); // Seedless set matches succeeding multiple successful matchers stipulate sorting if ( outermost && !seed && setMatched.length > 0 && ( matchedCount + setMatchers.length ) > 1 ) { Sizzle.uniqueSort( results ); } } // Override manipulation of globals by nested matchers if ( outermost ) { dirruns = dirrunsUnique; outermostContext = contextBackup; } return unmatched; }; return bySet ? markFunction( superMatcher ) : superMatcher; } compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) { var i, setMatchers = [], elementMatchers = [], cached = compilerCache[ selector + " " ]; if ( !cached ) { // Generate a function of recursive functions that can be used to check each element if ( !match ) { match = tokenize( selector ); } i = match.length; while ( i-- ) { cached = matcherFromTokens( match[i] ); if ( cached[ expando ] ) { setMatchers.push( cached ); } else { elementMatchers.push( cached ); } } // Cache the compiled function cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); // Save selector and tokenization cached.selector = selector; } return cached; }; /** * A low-level selection function that works with Sizzle's compiled * selector functions * @param {String|Function} selector A selector or a pre-compiled * selector function built with Sizzle.compile * @param {Element} context * @param {Array} [results] * @param {Array} [seed] A set of elements to match against */ select = Sizzle.select = function( selector, context, results, seed ) { var i, tokens, token, type, find, compiled = typeof selector === "function" && selector, match = !seed && tokenize( (selector = compiled.selector || selector) ); results = results || []; // Try to minimize operations if there is only one selector in the list and no seed // (the latter of which guarantees us context) if ( match.length === 1 ) { // Reduce context if the leading compound selector is an ID tokens = match[0] = match[0].slice( 0 ); if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) { context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; if ( !context ) { return results; // Precompiled matchers will still verify ancestry, so step up a level } else if ( compiled ) { context = context.parentNode; } selector = selector.slice( tokens.shift().value.length ); } // Fetch a seed set for right-to-left matching i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; while ( i-- ) { token = tokens[i]; // Abort if we hit a combinator if ( Expr.relative[ (type = token.type) ] ) { break; } if ( (find = Expr.find[ type ]) ) { // Search, expanding context for leading sibling combinators if ( (seed = find( token.matches[0].replace( runescape, funescape ), rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context )) ) { // If seed is empty or no tokens remain, we can return early tokens.splice( i, 1 ); selector = seed.length && toSelector( tokens ); if ( !selector ) { push.apply( results, seed ); return results; } break; } } } } // Compile and execute a filtering function if one is not provided // Provide `match` to avoid retokenization if we modified the selector above ( compiled || compile( selector, match ) )( seed, context, !documentIsHTML, results, !context || rsibling.test( selector ) && testContext( context.parentNode ) || context ); return results; }; // One-time assignments // Sort stability support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; // Support: Chrome 14-35+ // Always assume duplicates if they aren't passed to the comparison function support.detectDuplicates = !!hasDuplicate; // Initialize against the default document setDocument(); // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) // Detached nodes confoundingly follow *each other* support.sortDetached = assert(function( el ) { // Should return 1, but returns 4 (following) return el.compareDocumentPosition( document.createElement("fieldset") ) & 1; }); // Support: IE<8 // Prevent attribute/property "interpolation" // path_to_url if ( !assert(function( el ) { el.innerHTML = "<a href='#'></a>"; return el.firstChild.getAttribute("href") === "#" ; }) ) { addHandle( "type|href|height|width", function( elem, name, isXML ) { if ( !isXML ) { return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); } }); } // Support: IE<9 // Use defaultValue in place of getAttribute("value") if ( !support.attributes || !assert(function( el ) { el.innerHTML = "<input/>"; el.firstChild.setAttribute( "value", "" ); return el.firstChild.getAttribute( "value" ) === ""; }) ) { addHandle( "value", function( elem, name, isXML ) { if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { return elem.defaultValue; } }); } // Support: IE<9 // Use getAttributeNode to fetch booleans when getAttribute lies if ( !assert(function( el ) { return el.getAttribute("disabled") == null; }) ) { addHandle( booleans, function( elem, name, isXML ) { var val; if ( !isXML ) { return elem[ name ] === true ? name.toLowerCase() : (val = elem.getAttributeNode( name )) && val.specified ? val.value : null; } }); } return Sizzle; })( window ); jQuery.find = Sizzle; jQuery.expr = Sizzle.selectors; // Deprecated jQuery.expr[ ":" ] = jQuery.expr.pseudos; jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort; jQuery.text = Sizzle.getText; jQuery.isXMLDoc = Sizzle.isXML; jQuery.contains = Sizzle.contains; jQuery.escapeSelector = Sizzle.escape; var dir = function( elem, dir, until ) { var matched = [], truncate = until !== undefined; while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) { if ( elem.nodeType === 1 ) { if ( truncate && jQuery( elem ).is( until ) ) { break; } matched.push( elem ); } } return matched; }; var siblings = function( n, elem ) { var matched = []; for ( ; n; n = n.nextSibling ) { if ( n.nodeType === 1 && n !== elem ) { matched.push( n ); } } return matched; }; var rneedsContext = jQuery.expr.match.needsContext; var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); var risSimple = /^.[^:#\[\.,]*$/; // Implement the identical functionality for filter and not function winnow( elements, qualifier, not ) { if ( jQuery.isFunction( qualifier ) ) { return jQuery.grep( elements, function( elem, i ) { return !!qualifier.call( elem, i, elem ) !== not; } ); } // Single element if ( qualifier.nodeType ) { return jQuery.grep( elements, function( elem ) { return ( elem === qualifier ) !== not; } ); } // Arraylike of elements (jQuery, arguments, Array) if ( typeof qualifier !== "string" ) { return jQuery.grep( elements, function( elem ) { return ( indexOf.call( qualifier, elem ) > -1 ) !== not; } ); } // Simple selector that can be filtered directly, removing non-Elements if ( risSimple.test( qualifier ) ) { return jQuery.filter( qualifier, elements, not ); } // Complex selector, compare the two sets, removing non-Elements qualifier = jQuery.filter( qualifier, elements ); return jQuery.grep( elements, function( elem ) { return ( indexOf.call( qualifier, elem ) > -1 ) !== not && elem.nodeType === 1; } ); } jQuery.filter = function( expr, elems, not ) { var elem = elems[ 0 ]; if ( not ) { expr = ":not(" + expr + ")"; } if ( elems.length === 1 && elem.nodeType === 1 ) { return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : []; } return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { return elem.nodeType === 1; } ) ); }; jQuery.fn.extend( { find: function( selector ) { var i, ret, len = this.length, self = this; if ( typeof selector !== "string" ) { return this.pushStack( jQuery( selector ).filter( function() { for ( i = 0; i < len; i++ ) { if ( jQuery.contains( self[ i ], this ) ) { return true; } } } ) ); } ret = this.pushStack( [] ); for ( i = 0; i < len; i++ ) { jQuery.find( selector, self[ i ], ret ); } return len > 1 ? jQuery.uniqueSort( ret ) : ret; }, filter: function( selector ) { return this.pushStack( winnow( this, selector || [], false ) ); }, not: function( selector ) { return this.pushStack( winnow( this, selector || [], true ) ); }, is: function( selector ) { return !!winnow( this, // If this is a positional/relative selector, check membership in the returned set // so $("p:first").is("p:last") won't return true for a doc with two "p". typeof selector === "string" && rneedsContext.test( selector ) ? jQuery( selector ) : selector || [], false ).length; } } ); // Initialize a jQuery object // A central reference to the root jQuery(document) var rootjQuery, // A simple way to check for HTML strings // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) // Strict HTML recognition (#11290: must start with <) // Shortcut simple #id case for speed rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, init = jQuery.fn.init = function( selector, context, root ) { var match, elem; // HANDLE: $(""), $(null), $(undefined), $(false) if ( !selector ) { return this; } // Method init() accepts an alternate rootjQuery // so migrate can support jQuery.sub (gh-2101) root = root || rootjQuery; // Handle HTML strings if ( typeof selector === "string" ) { if ( selector[ 0 ] === "<" && selector[ selector.length - 1 ] === ">" && selector.length >= 3 ) { // Assume that strings that start and end with <> are HTML and skip the regex check match = [ null, selector, null ]; } else { match = rquickExpr.exec( selector ); } // Match html or make sure no context is specified for #id if ( match && ( match[ 1 ] || !context ) ) { // HANDLE: $(html) -> $(array) if ( match[ 1 ] ) { context = context instanceof jQuery ? context[ 0 ] : context; // Option to run scripts is true for back-compat // Intentionally let the error be thrown if parseHTML is not present jQuery.merge( this, jQuery.parseHTML( match[ 1 ], context && context.nodeType ? context.ownerDocument || context : document, true ) ); // HANDLE: $(html, props) if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) { for ( match in context ) { // Properties of context are called as methods if possible if ( jQuery.isFunction( this[ match ] ) ) { this[ match ]( context[ match ] ); // ...and otherwise set as attributes } else { this.attr( match, context[ match ] ); } } } return this; // HANDLE: $(#id) } else { elem = document.getElementById( match[ 2 ] ); if ( elem ) { // Inject the element directly into the jQuery object this[ 0 ] = elem; this.length = 1; } return this; } // HANDLE: $(expr, $(...)) } else if ( !context || context.jquery ) { return ( context || root ).find( selector ); // HANDLE: $(expr, context) // (which is just equivalent to: $(context).find(expr) } else { return this.constructor( context ).find( selector ); } // HANDLE: $(DOMElement) } else if ( selector.nodeType ) { this[ 0 ] = selector; this.length = 1; return this; // HANDLE: $(function) // Shortcut for document ready } else if ( jQuery.isFunction( selector ) ) { return root.ready !== undefined ? root.ready( selector ) : // Execute immediately if ready is not present selector( jQuery ); } return jQuery.makeArray( selector, this ); }; // Give the init function the jQuery prototype for later instantiation init.prototype = jQuery.fn; // Initialize central reference rootjQuery = jQuery( document ); var rparentsprev = /^(?:parents|prev(?:Until|All))/, // Methods guaranteed to produce a unique set when starting from a unique set guaranteedUnique = { children: true, contents: true, next: true, prev: true }; jQuery.fn.extend( { has: function( target ) { var targets = jQuery( target, this ), l = targets.length; return this.filter( function() { var i = 0; for ( ; i < l; i++ ) { if ( jQuery.contains( this, targets[ i ] ) ) { return true; } } } ); }, closest: function( selectors, context ) { var cur, i = 0, l = this.length, matched = [], targets = typeof selectors !== "string" && jQuery( selectors ); // Positional selectors never match, since there's no _selection_ context if ( !rneedsContext.test( selectors ) ) { for ( ; i < l; i++ ) { for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) { // Always skip document fragments if ( cur.nodeType < 11 && ( targets ? targets.index( cur ) > -1 : // Don't pass non-elements to Sizzle cur.nodeType === 1 && jQuery.find.matchesSelector( cur, selectors ) ) ) { matched.push( cur ); break; } } } } return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched ); }, // Determine the position of an element within the set index: function( elem ) { // No argument, return index in parent if ( !elem ) { return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; } // Index in selector if ( typeof elem === "string" ) { return indexOf.call( jQuery( elem ), this[ 0 ] ); } // Locate the position of the desired element return indexOf.call( this, // If it receives a jQuery object, the first element is used elem.jquery ? elem[ 0 ] : elem ); }, add: function( selector, context ) { return this.pushStack( jQuery.uniqueSort( jQuery.merge( this.get(), jQuery( selector, context ) ) ) ); }, addBack: function( selector ) { return this.add( selector == null ? this.prevObject : this.prevObject.filter( selector ) ); } } ); function sibling( cur, dir ) { while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {} return cur; } jQuery.each( { parent: function( elem ) { var parent = elem.parentNode; return parent && parent.nodeType !== 11 ? parent : null; }, parents: function( elem ) { return dir( elem, "parentNode" ); }, parentsUntil: function( elem, i, until ) { return dir( elem, "parentNode", until ); }, next: function( elem ) { return sibling( elem, "nextSibling" ); }, prev: function( elem ) { return sibling( elem, "previousSibling" ); }, nextAll: function( elem ) { return dir( elem, "nextSibling" ); }, prevAll: function( elem ) { return dir( elem, "previousSibling" ); }, nextUntil: function( elem, i, until ) { return dir( elem, "nextSibling", until ); }, prevUntil: function( elem, i, until ) { return dir( elem, "previousSibling", until ); }, siblings: function( elem ) { return siblings( ( elem.parentNode || {} ).firstChild, elem ); }, children: function( elem ) { return siblings( elem.firstChild ); }, contents: function( elem ) { return elem.contentDocument || jQuery.merge( [], elem.childNodes ); } }, function( name, fn ) { jQuery.fn[ name ] = function( until, selector ) { var matched = jQuery.map( this, fn, until ); if ( name.slice( -5 ) !== "Until" ) { selector = until; } if ( selector && typeof selector === "string" ) { matched = jQuery.filter( selector, matched ); } if ( this.length > 1 ) { // Remove duplicates if ( !guaranteedUnique[ name ] ) { jQuery.uniqueSort( matched ); } // Reverse order for parents* and prev-derivatives if ( rparentsprev.test( name ) ) { matched.reverse(); } } return this.pushStack( matched ); }; } ); var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g ); // Convert String-formatted options into Object-formatted ones function createOptions( options ) { var object = {}; jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) { object[ flag ] = true; } ); return object; } /* * Create a callback list using the following parameters: * * options: an optional list of space-separated options that will change how * the callback list behaves or a more traditional option object * * By default a callback list will act like an event callback list and can be * "fired" multiple times. * * Possible options: * * once: will ensure the callback list can only be fired once (like a Deferred) * * memory: will keep track of previous values and will call any callback added * after the list has been fired right away with the latest "memorized" * values (like a Deferred) * * unique: will ensure a callback can only be added once (no duplicate in the list) * * stopOnFalse: interrupt callings when a callback returns false * */ jQuery.Callbacks = function( options ) { // Convert options from String-formatted to Object-formatted if needed // (we check in cache first) options = typeof options === "string" ? createOptions( options ) : jQuery.extend( {}, options ); var // Flag to know if list is currently firing firing, // Last fire value for non-forgettable lists memory, // Flag to know if list was already fired fired, // Flag to prevent firing locked, // Actual callback list list = [], // Queue of execution data for repeatable lists queue = [], // Index of currently firing callback (modified by add/remove as needed) firingIndex = -1, // Fire callbacks fire = function() { // Enforce single-firing locked = options.once; // Execute callbacks for all pending executions, // respecting firingIndex overrides and runtime changes fired = firing = true; for ( ; queue.length; firingIndex = -1 ) { memory = queue.shift(); while ( ++firingIndex < list.length ) { // Run callback and check for early termination if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false && options.stopOnFalse ) { // Jump to end and forget the data so .add doesn't re-fire firingIndex = list.length; memory = false; } } } // Forget the data if we're done with it if ( !options.memory ) { memory = false; } firing = false; // Clean up if we're done firing for good if ( locked ) { // Keep an empty list if we have data for future add calls if ( memory ) { list = []; // Otherwise, this object is spent } else { list = ""; } } }, // Actual Callbacks object self = { // Add a callback or a collection of callbacks to the list add: function() { if ( list ) { // If we have memory from a past run, we should fire after adding if ( memory && !firing ) { firingIndex = list.length - 1; queue.push( memory ); } ( function add( args ) { jQuery.each( args, function( _, arg ) { if ( jQuery.isFunction( arg ) ) { if ( !options.unique || !self.has( arg ) ) { list.push( arg ); } } else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) { // Inspect recursively add( arg ); } } ); } )( arguments ); if ( memory && !firing ) { fire(); } } return this; }, // Remove a callback from the list remove: function() { jQuery.each( arguments, function( _, arg ) { var index; while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { list.splice( index, 1 ); // Handle firing indexes if ( index <= firingIndex ) { firingIndex--; } } } ); return this; }, // Check if a given callback is in the list. // If no argument is given, return whether or not list has callbacks attached. has: function( fn ) { return fn ? jQuery.inArray( fn, list ) > -1 : list.length > 0; }, // Remove all callbacks from the list empty: function() { if ( list ) { list = []; } return this; }, // Disable .fire and .add // Abort any current/pending executions // Clear all callbacks and values disable: function() { locked = queue = []; list = memory = ""; return this; }, disabled: function() { return !list; }, // Disable .fire // Also disable .add unless we have memory (since it would have no effect) // Abort any pending executions lock: function() { locked = queue = []; if ( !memory && !firing ) { list = memory = ""; } return this; }, locked: function() { return !!locked; }, // Call all callbacks with the given context and arguments fireWith: function( context, args ) { if ( !locked ) { args = args || []; args = [ context, args.slice ? args.slice() : args ]; queue.push( args ); if ( !firing ) { fire(); } } return this; }, // Call all the callbacks with the given arguments fire: function() { self.fireWith( this, arguments ); return this; }, // To know if the callbacks have already been called at least once fired: function() { return !!fired; } }; return self; }; function Identity( v ) { return v; } function Thrower( ex ) { throw ex; } function adoptValue( value, resolve, reject ) { var method; try { // Check for promise aspect first to privilege synchronous behavior if ( value && jQuery.isFunction( ( method = value.promise ) ) ) { method.call( value ).done( resolve ).fail( reject ); // Other thenables } else if ( value && jQuery.isFunction( ( method = value.then ) ) ) { method.call( value, resolve, reject ); // Other non-thenables } else { // Support: Android 4.0 only // Strict mode functions invoked without .call/.apply get global-object context resolve.call( undefined, value ); } // For Promises/A+, convert exceptions into rejections // Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in // Deferred#then to conditionally suppress rejection. } catch ( value ) { // Support: Android 4.0 only // Strict mode functions invoked without .call/.apply get global-object context reject.call( undefined, value ); } } jQuery.extend( { Deferred: function( func ) { var tuples = [ // action, add listener, callbacks, // ... .then handlers, argument index, [final state] [ "notify", "progress", jQuery.Callbacks( "memory" ), jQuery.Callbacks( "memory" ), 2 ], [ "resolve", "done", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 0, "resolved" ], [ "reject", "fail", jQuery.Callbacks( "once memory" ), jQuery.Callbacks( "once memory" ), 1, "rejected" ] ], state = "pending", promise = { state: function() { return state; }, always: function() { deferred.done( arguments ).fail( arguments ); return this; }, "catch": function( fn ) { return promise.then( null, fn ); }, // Keep pipe for back-compat pipe: function( /* fnDone, fnFail, fnProgress */ ) { var fns = arguments; return jQuery.Deferred( function( newDefer ) { jQuery.each( tuples, function( i, tuple ) { // Map tuples (progress, done, fail) to arguments (done, fail, progress) var fn = jQuery.isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ]; // deferred.progress(function() { bind to newDefer or newDefer.notify }) // deferred.done(function() { bind to newDefer or newDefer.resolve }) // deferred.fail(function() { bind to newDefer or newDefer.reject }) deferred[ tuple[ 1 ] ]( function() { var returned = fn && fn.apply( this, arguments ); if ( returned && jQuery.isFunction( returned.promise ) ) { returned.promise() .progress( newDefer.notify ) .done( newDefer.resolve ) .fail( newDefer.reject ); } else { newDefer[ tuple[ 0 ] + "With" ]( this, fn ? [ returned ] : arguments ); } } ); } ); fns = null; } ).promise(); }, then: function( onFulfilled, onRejected, onProgress ) { var maxDepth = 0; function resolve( depth, deferred, handler, special ) { return function() { var that = this, args = arguments, mightThrow = function() { var returned, then; // Support: Promises/A+ section 2.3.3.3.3 // path_to_url#point-59 // Ignore double-resolution attempts if ( depth < maxDepth ) { return; } returned = handler.apply( that, args ); // Support: Promises/A+ section 2.3.1 // path_to_url#point-48 if ( returned === deferred.promise() ) { throw new TypeError( "Thenable self-resolution" ); } // Support: Promises/A+ sections 2.3.3.1, 3.5 // path_to_url#point-54 // path_to_url#point-75 // Retrieve `then` only once then = returned && // Support: Promises/A+ section 2.3.4 // path_to_url#point-64 // Only check objects and functions for thenability ( typeof returned === "object" || typeof returned === "function" ) && returned.then; // Handle a returned thenable if ( jQuery.isFunction( then ) ) { // Special processors (notify) just wait for resolution if ( special ) { then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ) ); // Normal processors (resolve) also hook into progress } else { // ...and disregard older resolution values maxDepth++; then.call( returned, resolve( maxDepth, deferred, Identity, special ), resolve( maxDepth, deferred, Thrower, special ), resolve( maxDepth, deferred, Identity, deferred.notifyWith ) ); } // Handle all other returned values } else { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Identity ) { that = undefined; args = [ returned ]; } // Process the value(s) // Default process is resolve ( special || deferred.resolveWith )( that, args ); } }, // Only normal processors (resolve) catch and reject exceptions process = special ? mightThrow : function() { try { mightThrow(); } catch ( e ) { if ( jQuery.Deferred.exceptionHook ) { jQuery.Deferred.exceptionHook( e, process.stackTrace ); } // Support: Promises/A+ section 2.3.3.3.4.1 // path_to_url#point-61 // Ignore post-resolution exceptions if ( depth + 1 >= maxDepth ) { // Only substitute handlers pass on context // and multiple values (non-spec behavior) if ( handler !== Thrower ) { that = undefined; args = [ e ]; } deferred.rejectWith( that, args ); } } }; // Support: Promises/A+ section 2.3.3.3.1 // path_to_url#point-57 // Re-resolve promises immediately to dodge false rejection from // subsequent errors if ( depth ) { process(); } else { // Call an optional hook to record the stack, in case of exception // since it's otherwise lost when execution goes async if ( jQuery.Deferred.getStackHook ) { process.stackTrace = jQuery.Deferred.getStackHook(); } window.setTimeout( process ); } }; } return jQuery.Deferred( function( newDefer ) { // progress_handlers.add( ... ) tuples[ 0 ][ 3 ].add( resolve( 0, newDefer, jQuery.isFunction( onProgress ) ? onProgress : Identity, newDefer.notifyWith ) ); // fulfilled_handlers.add( ... ) tuples[ 1 ][ 3 ].add( resolve( 0, newDefer, jQuery.isFunction( onFulfilled ) ? onFulfilled : Identity ) ); // rejected_handlers.add( ... ) tuples[ 2 ][ 3 ].add( resolve( 0, newDefer, jQuery.isFunction( onRejected ) ? onRejected : Thrower ) ); } ).promise(); }, // Get a promise for this deferred // If obj is provided, the promise aspect is added to the object promise: function( obj ) { return obj != null ? jQuery.extend( obj, promise ) : promise; } }, deferred = {}; // Add list-specific methods jQuery.each( tuples, function( i, tuple ) { var list = tuple[ 2 ], stateString = tuple[ 5 ]; // promise.progress = list.add // promise.done = list.add // promise.fail = list.add promise[ tuple[ 1 ] ] = list.add; // Handle state if ( stateString ) { list.add( function() { // state = "resolved" (i.e., fulfilled) // state = "rejected" state = stateString; }, // rejected_callbacks.disable // fulfilled_callbacks.disable tuples[ 3 - i ][ 2 ].disable, // progress_callbacks.lock tuples[ 0 ][ 2 ].lock ); } // progress_handlers.fire // fulfilled_handlers.fire // rejected_handlers.fire list.add( tuple[ 3 ].fire ); // deferred.notify = function() { deferred.notifyWith(...) } // deferred.resolve = function() { deferred.resolveWith(...) } // deferred.reject = function() { deferred.rejectWith(...) } deferred[ tuple[ 0 ] ] = function() { deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments ); return this; }; // deferred.notifyWith = list.fireWith // deferred.resolveWith = list.fireWith // deferred.rejectWith = list.fireWith deferred[ tuple[ 0 ] + "With" ] = list.fireWith; } ); // Make the deferred a promise promise.promise( deferred ); // Call given func if any if ( func ) { func.call( deferred, deferred ); } // All done! return deferred; }, // Deferred helper when: function( singleValue ) { var // count of uncompleted subordinates remaining = arguments.length, // count of unprocessed arguments i = remaining, // subordinate fulfillment data resolveContexts = Array( i ), resolveValues = slice.call( arguments ), // the master Deferred master = jQuery.Deferred(), // subordinate callback factory updateFunc = function( i ) { return function( value ) { resolveContexts[ i ] = this; resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value; if ( !( --remaining ) ) { master.resolveWith( resolveContexts, resolveValues ); } }; }; // Single- and empty arguments are adopted like Promise.resolve if ( remaining <= 1 ) { adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject ); // Use .then() to unwrap secondary thenables (cf. gh-3000) if ( master.state() === "pending" || jQuery.isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) { return master.then(); } } // Multiple arguments are aggregated like Promise.all array elements while ( i-- ) { adoptValue( resolveValues[ i ], updateFunc( i ), master.reject ); } return master.promise(); } } ); // These usually indicate a programmer mistake during development, // warn about them ASAP rather than swallowing them by default. var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; jQuery.Deferred.exceptionHook = function( error, stack ) { // Support: IE 8 - 9 only // Console exists when dev tools are open, which can happen at any time if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) { window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack ); } }; jQuery.readyException = function( error ) { window.setTimeout( function() { throw error; } ); }; // The deferred used on DOM ready var readyList = jQuery.Deferred(); jQuery.fn.ready = function( fn ) { readyList .then( fn ) // Wrap jQuery.readyException in a function so that the lookup // happens at the time of error handling instead of callback // registration. .catch( function( error ) { jQuery.readyException( error ); } ); return this; }; jQuery.extend( { // Is the DOM ready to be used? Set to true once it occurs. isReady: false, // A counter to track how many items to wait for before // the ready event fires. See #6781 readyWait: 1, // Hold (or release) the ready event holdReady: function( hold ) { if ( hold ) { jQuery.readyWait++; } else { jQuery.ready( true ); } }, // Handle when the DOM is ready ready: function( wait ) { // Abort if there are pending holds or we're already ready if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { return; } // Remember that the DOM is ready jQuery.isReady = true; // If a normal DOM Ready event fired, decrement, and wait if need be if ( wait !== true && --jQuery.readyWait > 0 ) { return; } // If there are functions bound, to execute readyList.resolveWith( document, [ jQuery ] ); } } ); jQuery.ready.then = readyList.then; // The ready event handler and self cleanup method function completed() { document.removeEventListener( "DOMContentLoaded", completed ); window.removeEventListener( "load", completed ); jQuery.ready(); } // Catch cases where $(document).ready() is called // after the browser event has already occurred. // Support: IE <=9 - 10 only // Older IE sometimes signals "interactive" too soon if ( document.readyState === "complete" || ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) { // Handle it asynchronously to allow scripts the opportunity to delay ready window.setTimeout( jQuery.ready ); } else { // Use the handy event callback document.addEventListener( "DOMContentLoaded", completed ); // A fallback to window.onload, that will always work window.addEventListener( "load", completed ); } // Multifunctional method to get and set values of a collection // The value/s can optionally be executed if it's a function var access = function( elems, fn, key, value, chainable, emptyGet, raw ) { var i = 0, len = elems.length, bulk = key == null; // Sets many values if ( jQuery.type( key ) === "object" ) { chainable = true; for ( i in key ) { access( elems, fn, i, key[ i ], true, emptyGet, raw ); } // Sets one value } else if ( value !== undefined ) { chainable = true; if ( !jQuery.isFunction( value ) ) { raw = true; } if ( bulk ) { // Bulk operations run against the entire set if ( raw ) { fn.call( elems, value ); fn = null; // ...except when executing function values } else { bulk = fn; fn = function( elem, key, value ) { return bulk.call( jQuery( elem ), value ); }; } } if ( fn ) { for ( ; i < len; i++ ) { fn( elems[ i ], key, raw ? value : value.call( elems[ i ], i, fn( elems[ i ], key ) ) ); } } } if ( chainable ) { return elems; } // Gets if ( bulk ) { return fn.call( elems ); } return len ? fn( elems[ 0 ], key ) : emptyGet; }; var acceptData = function( owner ) { // Accepts only: // - Node // - Node.ELEMENT_NODE // - Node.DOCUMENT_NODE // - Object // - Any return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType ); }; function Data() { this.expando = jQuery.expando + Data.uid++; } Data.uid = 1; Data.prototype = { cache: function( owner ) { // Check if the owner object already has a cache var value = owner[ this.expando ]; // If not, create one if ( !value ) { value = {}; // We can accept data for non-element nodes in modern browsers, // but we should not, see #8335. // Always return an empty object. if ( acceptData( owner ) ) { // If it is a node unlikely to be stringify-ed or looped over // use plain assignment if ( owner.nodeType ) { owner[ this.expando ] = value; // Otherwise secure it in a non-enumerable property // configurable must be true to allow the property to be // deleted when data is removed } else { Object.defineProperty( owner, this.expando, { value: value, configurable: true } ); } } } return value; }, set: function( owner, data, value ) { var prop, cache = this.cache( owner ); // Handle: [ owner, key, value ] args // Always use camelCase key (gh-2257) if ( typeof data === "string" ) { cache[ jQuery.camelCase( data ) ] = value; // Handle: [ owner, { properties } ] args } else { // Copy the properties one-by-one to the cache object for ( prop in data ) { cache[ jQuery.camelCase( prop ) ] = data[ prop ]; } } return cache; }, get: function( owner, key ) { return key === undefined ? this.cache( owner ) : // Always use camelCase key (gh-2257) owner[ this.expando ] && owner[ this.expando ][ jQuery.camelCase( key ) ]; }, access: function( owner, key, value ) { // In cases where either: // // 1. No key was specified // 2. A string key was specified, but no value provided // // Take the "read" path and allow the get method to determine // which value to return, respectively either: // // 1. The entire cache object // 2. The data stored at the key // if ( key === undefined || ( ( key && typeof key === "string" ) && value === undefined ) ) { return this.get( owner, key ); } // When the key is not a string, or both a key and value // are specified, set or extend (existing objects) with either: // // 1. An object of properties // 2. A key and value // this.set( owner, key, value ); // Since the "set" path can have two possible entry points // return the expected data based on which path was taken[*] return value !== undefined ? value : key; }, remove: function( owner, key ) { var i, cache = owner[ this.expando ]; if ( cache === undefined ) { return; } if ( key !== undefined ) { // Support array or space separated string of keys if ( jQuery.isArray( key ) ) { // If key is an array of keys... // We always set camelCase keys, so remove that. key = key.map( jQuery.camelCase ); } else { key = jQuery.camelCase( key ); // If a key with the spaces exists, use it. // Otherwise, create an array by matching non-whitespace key = key in cache ? [ key ] : ( key.match( rnothtmlwhite ) || [] ); } i = key.length; while ( i-- ) { delete cache[ key[ i ] ]; } } // Remove the expando if there's no more data if ( key === undefined || jQuery.isEmptyObject( cache ) ) { // Support: Chrome <=35 - 45 // Webkit & Blink performance suffers when deleting properties // from DOM nodes, so set to undefined instead // path_to_url (bug restricted) if ( owner.nodeType ) { owner[ this.expando ] = undefined; } else { delete owner[ this.expando ]; } } }, hasData: function( owner ) { var cache = owner[ this.expando ]; return cache !== undefined && !jQuery.isEmptyObject( cache ); } }; var dataPriv = new Data(); var dataUser = new Data(); // Implementation Summary // // 1. Enforce API surface and semantic compatibility with 1.9.x branch // 2. Improve the module's maintainability by reducing the storage // paths to a single mechanism. // 3. Use the same single mechanism to support "private" and "user" data. // 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) // 5. Avoid exposing implementation details on user objects (eg. expando properties) // 6. Provide a clear path for implementation upgrade to WeakMap in 2014 var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, rmultiDash = /[A-Z]/g; function getData( data ) { if ( data === "true" ) { return true; } if ( data === "false" ) { return false; } if ( data === "null" ) { return null; } // Only convert to a number if it doesn't change the string if ( data === +data + "" ) { return +data; } if ( rbrace.test( data ) ) { return JSON.parse( data ); } return data; } function dataAttr( elem, key, data ) { var name; // If nothing was found internally, try to fetch any // data from the HTML5 data-* attribute if ( data === undefined && elem.nodeType === 1 ) { name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase(); data = elem.getAttribute( name ); if ( typeof data === "string" ) { try { data = getData( data ); } catch ( e ) {} // Make sure we set the data so it isn't changed later dataUser.set( elem, key, data ); } else { data = undefined; } } return data; } jQuery.extend( { hasData: function( elem ) { return dataUser.hasData( elem ) || dataPriv.hasData( elem ); }, data: function( elem, name, data ) { return dataUser.access( elem, name, data ); }, removeData: function( elem, name ) { dataUser.remove( elem, name ); }, // TODO: Now that all calls to _data and _removeData have been replaced // with direct calls to dataPriv methods, these can be deprecated. _data: function( elem, name, data ) { return dataPriv.access( elem, name, data ); }, _removeData: function( elem, name ) { dataPriv.remove( elem, name ); } } ); jQuery.fn.extend( { data: function( key, value ) { var i, name, data, elem = this[ 0 ], attrs = elem && elem.attributes; // Gets all values if ( key === undefined ) { if ( this.length ) { data = dataUser.get( elem ); if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) { i = attrs.length; while ( i-- ) { // Support: IE 11 only // The attrs elements can be null (#14894) if ( attrs[ i ] ) { name = attrs[ i ].name; if ( name.indexOf( "data-" ) === 0 ) { name = jQuery.camelCase( name.slice( 5 ) ); dataAttr( elem, name, data[ name ] ); } } } dataPriv.set( elem, "hasDataAttrs", true ); } } return data; } // Sets multiple values if ( typeof key === "object" ) { return this.each( function() { dataUser.set( this, key ); } ); } return access( this, function( value ) { var data; // The calling jQuery object (element matches) is not empty // (and therefore has an element appears at this[ 0 ]) and the // `value` parameter was not undefined. An empty jQuery object // will result in `undefined` for elem = this[ 0 ] which will // throw an exception if an attempt to read a data cache is made. if ( elem && value === undefined ) { // Attempt to get data from the cache // The key will always be camelCased in Data data = dataUser.get( elem, key ); if ( data !== undefined ) { return data; } // Attempt to "discover" the data in // HTML5 custom data-* attrs data = dataAttr( elem, key ); if ( data !== undefined ) { return data; } // We tried really hard, but the data doesn't exist. return; } // Set the data... this.each( function() { // We always store the camelCased key dataUser.set( this, key, value ); } ); }, null, value, arguments.length > 1, null, true ); }, removeData: function( key ) { return this.each( function() { dataUser.remove( this, key ); } ); } } ); jQuery.extend( { queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = dataPriv.get( elem, type ); // Speed up dequeue by getting out quickly if this is just a lookup if ( data ) { if ( !queue || jQuery.isArray( data ) ) { queue = dataPriv.access( elem, type, jQuery.makeArray( data ) ); } else { queue.push( data ); } } return queue || []; } }, dequeue: function( elem, type ) { type = type || "fx"; var queue = jQuery.queue( elem, type ), startLength = queue.length, fn = queue.shift(), hooks = jQuery._queueHooks( elem, type ), next = function() { jQuery.dequeue( elem, type ); }; // If the fx queue is dequeued, always remove the progress sentinel if ( fn === "inprogress" ) { fn = queue.shift(); startLength--; } if ( fn ) { // Add a progress sentinel to prevent the fx queue from being // automatically dequeued if ( type === "fx" ) { queue.unshift( "inprogress" ); } // Clear up the last queue stop function delete hooks.stop; fn.call( elem, next, hooks ); } if ( !startLength && hooks ) { hooks.empty.fire(); } }, // Not public - generate a queueHooks object, or return the current one _queueHooks: function( elem, type ) { var key = type + "queueHooks"; return dataPriv.get( elem, key ) || dataPriv.access( elem, key, { empty: jQuery.Callbacks( "once memory" ).add( function() { dataPriv.remove( elem, [ type + "queue", key ] ); } ) } ); } } ); jQuery.fn.extend( { queue: function( type, data ) { var setter = 2; if ( typeof type !== "string" ) { data = type; type = "fx"; setter--; } if ( arguments.length < setter ) { return jQuery.queue( this[ 0 ], type ); } return data === undefined ? this : this.each( function() { var queue = jQuery.queue( this, type, data ); // Ensure a hooks for this queue jQuery._queueHooks( this, type ); if ( type === "fx" && queue[ 0 ] !== "inprogress" ) { jQuery.dequeue( this, type ); } } ); }, dequeue: function( type ) { return this.each( function() { jQuery.dequeue( this, type ); } ); }, clearQueue: function( type ) { return this.queue( type || "fx", [] ); }, // Get a promise resolved when queues of a certain type // are emptied (fx is the type by default) promise: function( type, obj ) { var tmp, count = 1, defer = jQuery.Deferred(), elements = this, i = this.length, resolve = function() { if ( !( --count ) ) { defer.resolveWith( elements, [ elements ] ); } }; if ( typeof type !== "string" ) { obj = type; type = undefined; } type = type || "fx"; while ( i-- ) { tmp = dataPriv.get( elements[ i ], type + "queueHooks" ); if ( tmp && tmp.empty ) { count++; tmp.empty.add( resolve ); } } resolve(); return defer.promise( obj ); } } ); var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source; var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); var cssExpand = [ "Top", "Right", "Bottom", "Left" ]; var isHiddenWithinTree = function( elem, el ) { // isHiddenWithinTree might be called from jQuery#filter function; // in that case, element will be second argument elem = el || elem; // Inline style trumps all return elem.style.display === "none" || elem.style.display === "" && // Otherwise, check computed style // Support: Firefox <=43 - 45 // Disconnected elements can have computed display: none, so first confirm that elem is // in the document. jQuery.contains( elem.ownerDocument, elem ) && jQuery.css( elem, "display" ) === "none"; }; var swap = function( elem, options, callback, args ) { var ret, name, old = {}; // Remember the old values, and insert the new ones for ( name in options ) { old[ name ] = elem.style[ name ]; elem.style[ name ] = options[ name ]; } ret = callback.apply( elem, args || [] ); // Revert the old values for ( name in options ) { elem.style[ name ] = old[ name ]; } return ret; }; function adjustCSS( elem, prop, valueParts, tween ) { var adjusted, scale = 1, maxIterations = 20, currentValue = tween ? function() { return tween.cur(); } : function() { return jQuery.css( elem, prop, "" ); }, initial = currentValue(), unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), // Starting value computation is required for potential unit mismatches initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) && rcssNum.exec( jQuery.css( elem, prop ) ); if ( initialInUnit && initialInUnit[ 3 ] !== unit ) { // Trust units reported by jQuery.css unit = unit || initialInUnit[ 3 ]; // Make sure we update the tween properties later on valueParts = valueParts || []; // Iteratively approximate from a nonzero starting point initialInUnit = +initial || 1; do { // If previous iteration zeroed out, double until we get *something*. // Use string for doubling so we don't accidentally see scale as unchanged below scale = scale || ".5"; // Adjust and apply initialInUnit = initialInUnit / scale; jQuery.style( elem, prop, initialInUnit + unit ); // Update scale, tolerating zero or NaN from tween.cur() // Break the loop if scale is unchanged or perfect, or if we've just had enough. } while ( scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations ); } if ( valueParts ) { initialInUnit = +initialInUnit || +initial || 0; // Apply relative offset (+=/-=) if specified adjusted = valueParts[ 1 ] ? initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] : +valueParts[ 2 ]; if ( tween ) { tween.unit = unit; tween.start = initialInUnit; tween.end = adjusted; } } return adjusted; } var defaultDisplayMap = {}; function getDefaultDisplay( elem ) { var temp, doc = elem.ownerDocument, nodeName = elem.nodeName, display = defaultDisplayMap[ nodeName ]; if ( display ) { return display; } temp = doc.body.appendChild( doc.createElement( nodeName ) ); display = jQuery.css( temp, "display" ); temp.parentNode.removeChild( temp ); if ( display === "none" ) { display = "block"; } defaultDisplayMap[ nodeName ] = display; return display; } function showHide( elements, show ) { var display, elem, values = [], index = 0, length = elements.length; // Determine new display value for elements that need to change for ( ; index < length; index++ ) { elem = elements[ index ]; if ( !elem.style ) { continue; } display = elem.style.display; if ( show ) { // Since we force visibility upon cascade-hidden elements, an immediate (and slow) // check is required in this first loop unless we have a nonempty display value (either // inline or about-to-be-restored) if ( display === "none" ) { values[ index ] = dataPriv.get( elem, "display" ) || null; if ( !values[ index ] ) { elem.style.display = ""; } } if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) { values[ index ] = getDefaultDisplay( elem ); } } else { if ( display !== "none" ) { values[ index ] = "none"; // Remember what we're overwriting dataPriv.set( elem, "display", display ); } } } // Set the display of the elements in a second loop to avoid constant reflow for ( index = 0; index < length; index++ ) { if ( values[ index ] != null ) { elements[ index ].style.display = values[ index ]; } } return elements; } jQuery.fn.extend( { show: function() { return showHide( this, true ); }, hide: function() { return showHide( this ); }, toggle: function( state ) { if ( typeof state === "boolean" ) { return state ? this.show() : this.hide(); } return this.each( function() { if ( isHiddenWithinTree( this ) ) { jQuery( this ).show(); } else { jQuery( this ).hide(); } } ); } } ); var rcheckableType = ( /^(?:checkbox|radio)$/i ); var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i ); var rscriptType = ( /^$|\/(?:java|ecma)script/i ); // We have to close these tags to support XHTML (#13200) var wrapMap = { // Support: IE <=9 only option: [ 1, "<select multiple='multiple'>", "</select>" ], // XHTML parsers do not magically insert elements in the // same way that tag soup parsers do. So we cannot shorten // this by omitting <tbody> or other required elements. thead: [ 1, "<table>", "</table>" ], col: [ 2, "<table><colgroup>", "</colgroup></table>" ], tr: [ 2, "<table><tbody>", "</tbody></table>" ], td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], _default: [ 0, "", "" ] }; // Support: IE <=9 only wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; wrapMap.th = wrapMap.td; function getAll( context, tag ) { // Support: IE <=9 - 11 only // Use typeof to avoid zero-argument method invocation on host objects (#15151) var ret; if ( typeof context.getElementsByTagName !== "undefined" ) { ret = context.getElementsByTagName( tag || "*" ); } else if ( typeof context.querySelectorAll !== "undefined" ) { ret = context.querySelectorAll( tag || "*" ); } else { ret = []; } if ( tag === undefined || tag && jQuery.nodeName( context, tag ) ) { return jQuery.merge( [ context ], ret ); } return ret; } // Mark scripts as having already been evaluated function setGlobalEval( elems, refElements ) { var i = 0, l = elems.length; for ( ; i < l; i++ ) { dataPriv.set( elems[ i ], "globalEval", !refElements || dataPriv.get( refElements[ i ], "globalEval" ) ); } } var rhtml = /<|&#?\w+;/; function buildFragment( elems, context, scripts, selection, ignored ) { var elem, tmp, tag, wrap, contains, j, fragment = context.createDocumentFragment(), nodes = [], i = 0, l = elems.length; for ( ; i < l; i++ ) { elem = elems[ i ]; if ( elem || elem === 0 ) { // Add nodes directly if ( jQuery.type( elem ) === "object" ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); // Convert non-html into a text node } else if ( !rhtml.test( elem ) ) { nodes.push( context.createTextNode( elem ) ); // Convert html into DOM nodes } else { tmp = tmp || fragment.appendChild( context.createElement( "div" ) ); // Deserialize a standard representation tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase(); wrap = wrapMap[ tag ] || wrapMap._default; tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ]; // Descend through wrappers to the right content j = wrap[ 0 ]; while ( j-- ) { tmp = tmp.lastChild; } // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, tmp.childNodes ); // Remember the top-level container tmp = fragment.firstChild; // Ensure the created nodes are orphaned (#12392) tmp.textContent = ""; } } } // Remove wrapper from fragment fragment.textContent = ""; i = 0; while ( ( elem = nodes[ i++ ] ) ) { // Skip elements already in the context collection (trac-4087) if ( selection && jQuery.inArray( elem, selection ) > -1 ) { if ( ignored ) { ignored.push( elem ); } continue; } contains = jQuery.contains( elem.ownerDocument, elem ); // Append to fragment tmp = getAll( fragment.appendChild( elem ), "script" ); // Preserve script evaluation history if ( contains ) { setGlobalEval( tmp ); } // Capture executables if ( scripts ) { j = 0; while ( ( elem = tmp[ j++ ] ) ) { if ( rscriptType.test( elem.type || "" ) ) { scripts.push( elem ); } } } } return fragment; } ( function() { var fragment = document.createDocumentFragment(), div = fragment.appendChild( document.createElement( "div" ) ), input = document.createElement( "input" ); // Support: Android 4.0 - 4.3 only // Check state lost if the name is set (#11217) // Support: Windows Web Apps (WWA) // `name` and `type` must use .setAttribute for WWA (#14901) input.setAttribute( "type", "radio" ); input.setAttribute( "checked", "checked" ); input.setAttribute( "name", "t" ); div.appendChild( input ); // Support: Android <=4.1 only // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; // Support: IE <=11 only // Make sure textarea (and checkbox) defaultValue is properly cloned div.innerHTML = "<textarea>x</textarea>"; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; } )(); var documentElement = document.documentElement; var rkeyEvent = /^key/, rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/, rtypenamespace = /^([^.]*)(?:\.(.+)|)/; function returnTrue() { return true; } function returnFalse() { return false; } // Support: IE <=9 only // See #13393 for more info function safeActiveElement() { try { return document.activeElement; } catch ( err ) { } } function on( elem, types, selector, data, fn, one ) { var origFn, type; // Types can be a map of types/handlers if ( typeof types === "object" ) { // ( types-Object, selector, data ) if ( typeof selector !== "string" ) { // ( types-Object, data ) data = data || selector; selector = undefined; } for ( type in types ) { on( elem, type, selector, data, types[ type ], one ); } return elem; } if ( data == null && fn == null ) { // ( types, fn ) fn = selector; data = selector = undefined; } else if ( fn == null ) { if ( typeof selector === "string" ) { // ( types, selector, fn ) fn = data; data = undefined; } else { // ( types, data, fn ) fn = data; data = selector; selector = undefined; } } if ( fn === false ) { fn = returnFalse; } else if ( !fn ) { return elem; } if ( one === 1 ) { origFn = fn; fn = function( event ) { // Can use an empty set, since event contains the info jQuery().off( event ); return origFn.apply( this, arguments ); }; // Use same guid so caller can remove using origFn fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); } return elem.each( function() { jQuery.event.add( this, types, fn, data, selector ); } ); } /* * Helper functions for managing events -- not part of the public interface. * Props to Dean Edwards' addEvent library for many of the ideas. */ jQuery.event = { global: {}, add: function( elem, types, handler, data, selector ) { var handleObjIn, eventHandle, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.get( elem ); // Don't attach events to noData or text/comment nodes (but allow plain objects) if ( !elemData ) { return; } // Caller can pass in an object of custom data in lieu of the handler if ( handler.handler ) { handleObjIn = handler; handler = handleObjIn.handler; selector = handleObjIn.selector; } // Ensure that invalid selectors throw exceptions at attach time // Evaluate against documentElement in case elem is a non-element node (e.g., document) if ( selector ) { jQuery.find.matchesSelector( documentElement, selector ); } // Make sure that the handler has a unique ID, used to find/remove it later if ( !handler.guid ) { handler.guid = jQuery.guid++; } // Init the element's event structure and main handler, if this is the first if ( !( events = elemData.events ) ) { events = elemData.events = {}; } if ( !( eventHandle = elemData.handle ) ) { eventHandle = elemData.handle = function( e ) { // Discard the second event of a jQuery.event.trigger() and // when an event is called after a page has unloaded return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? jQuery.event.dispatch.apply( elem, arguments ) : undefined; }; } // Handle multiple events separated by a space types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // There *must* be a type, no attaching namespace-only handlers if ( !type ) { continue; } // If event changes its type, use the special event handlers for the changed type special = jQuery.event.special[ type ] || {}; // If selector defined, determine special event api type, otherwise given type type = ( selector ? special.delegateType : special.bindType ) || type; // Update special based on newly reset type special = jQuery.event.special[ type ] || {}; // handleObj is passed to all event handlers handleObj = jQuery.extend( { type: type, origType: origType, data: data, handler: handler, guid: handler.guid, selector: selector, needsContext: selector && jQuery.expr.match.needsContext.test( selector ), namespace: namespaces.join( "." ) }, handleObjIn ); // Init the event handler queue if we're the first if ( !( handlers = events[ type ] ) ) { handlers = events[ type ] = []; handlers.delegateCount = 0; // Only use addEventListener if the special events handler returns false if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { if ( elem.addEventListener ) { elem.addEventListener( type, eventHandle ); } } } if ( special.add ) { special.add.call( elem, handleObj ); if ( !handleObj.handler.guid ) { handleObj.handler.guid = handler.guid; } } // Add to the element's handler list, delegates in front if ( selector ) { handlers.splice( handlers.delegateCount++, 0, handleObj ); } else { handlers.push( handleObj ); } // Keep track of which events have ever been used, for event optimization jQuery.event.global[ type ] = true; } }, // Detach an event or set of events from an element remove: function( elem, types, handler, selector, mappedTypes ) { var j, origCount, tmp, events, t, handleObj, special, handlers, type, namespaces, origType, elemData = dataPriv.hasData( elem ) && dataPriv.get( elem ); if ( !elemData || !( events = elemData.events ) ) { return; } // Once for each type.namespace in types; type may be omitted types = ( types || "" ).match( rnothtmlwhite ) || [ "" ]; t = types.length; while ( t-- ) { tmp = rtypenamespace.exec( types[ t ] ) || []; type = origType = tmp[ 1 ]; namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort(); // Unbind all events (on this namespace, if provided) for the element if ( !type ) { for ( type in events ) { jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); } continue; } special = jQuery.event.special[ type ] || {}; type = ( selector ? special.delegateType : special.bindType ) || type; handlers = events[ type ] || []; tmp = tmp[ 2 ] && new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ); // Remove matching events origCount = j = handlers.length; while ( j-- ) { handleObj = handlers[ j ]; if ( ( mappedTypes || origType === handleObj.origType ) && ( !handler || handler.guid === handleObj.guid ) && ( !tmp || tmp.test( handleObj.namespace ) ) && ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { handlers.splice( j, 1 ); if ( handleObj.selector ) { handlers.delegateCount--; } if ( special.remove ) { special.remove.call( elem, handleObj ); } } } // Remove generic event handler if we removed something and no more handlers exist // (avoids potential for endless recursion during removal of special event handlers) if ( origCount && !handlers.length ) { if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { jQuery.removeEvent( elem, type, elemData.handle ); } delete events[ type ]; } } // Remove data and the expando if it's no longer used if ( jQuery.isEmptyObject( events ) ) { dataPriv.remove( elem, "handle events" ); } }, dispatch: function( nativeEvent ) { // Make a writable jQuery.Event from the native event object var event = jQuery.event.fix( nativeEvent ); var i, j, ret, matched, handleObj, handlerQueue, args = new Array( arguments.length ), handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [], special = jQuery.event.special[ event.type ] || {}; // Use the fix-ed jQuery.Event rather than the (read-only) native event args[ 0 ] = event; for ( i = 1; i < arguments.length; i++ ) { args[ i ] = arguments[ i ]; } event.delegateTarget = this; // Call the preDispatch hook for the mapped type, and let it bail if desired if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { return; } // Determine handlers handlerQueue = jQuery.event.handlers.call( this, event, handlers ); // Run delegates first; they may want to stop propagation beneath us i = 0; while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) { event.currentTarget = matched.elem; j = 0; while ( ( handleObj = matched.handlers[ j++ ] ) && !event.isImmediatePropagationStopped() ) { // Triggered event must either 1) have no namespace, or 2) have namespace(s) // a subset or equal to those in the bound event (both can have no namespace). if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) { event.handleObj = handleObj; event.data = handleObj.data; ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle || handleObj.handler ).apply( matched.elem, args ); if ( ret !== undefined ) { if ( ( event.result = ret ) === false ) { event.preventDefault(); event.stopPropagation(); } } } } } // Call the postDispatch hook for the mapped type if ( special.postDispatch ) { special.postDispatch.call( this, event ); } return event.result; }, handlers: function( event, handlers ) { var i, handleObj, sel, matchedHandlers, matchedSelectors, handlerQueue = [], delegateCount = handlers.delegateCount, cur = event.target; // Find delegate handlers if ( delegateCount && // Support: IE <=9 // Black-hole SVG <use> instance trees (trac-13180) cur.nodeType && // Support: Firefox <=42 // Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861) // path_to_url#event-type-click // Support: IE 11 only // ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343) !( event.type === "click" && event.button >= 1 ) ) { for ( ; cur !== this; cur = cur.parentNode || this ) { // Don't check non-elements (#13208) // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) { matchedHandlers = []; matchedSelectors = {}; for ( i = 0; i < delegateCount; i++ ) { handleObj = handlers[ i ]; // Don't conflict with Object.prototype properties (#13203) sel = handleObj.selector + " "; if ( matchedSelectors[ sel ] === undefined ) { matchedSelectors[ sel ] = handleObj.needsContext ? jQuery( sel, this ).index( cur ) > -1 : jQuery.find( sel, this, null, [ cur ] ).length; } if ( matchedSelectors[ sel ] ) { matchedHandlers.push( handleObj ); } } if ( matchedHandlers.length ) { handlerQueue.push( { elem: cur, handlers: matchedHandlers } ); } } } } // Add the remaining (directly-bound) handlers cur = this; if ( delegateCount < handlers.length ) { handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } ); } return handlerQueue; }, addProp: function( name, hook ) { Object.defineProperty( jQuery.Event.prototype, name, { enumerable: true, configurable: true, get: jQuery.isFunction( hook ) ? function() { if ( this.originalEvent ) { return hook( this.originalEvent ); } } : function() { if ( this.originalEvent ) { return this.originalEvent[ name ]; } }, set: function( value ) { Object.defineProperty( this, name, { enumerable: true, configurable: true, writable: true, value: value } ); } } ); }, fix: function( originalEvent ) { return originalEvent[ jQuery.expando ] ? originalEvent : new jQuery.Event( originalEvent ); }, special: { load: { // Prevent triggered image.load events from bubbling to window.load noBubble: true }, focus: { // Fire native event if possible so blur/focus sequence is correct trigger: function() { if ( this !== safeActiveElement() && this.focus ) { this.focus(); return false; } }, delegateType: "focusin" }, blur: { trigger: function() { if ( this === safeActiveElement() && this.blur ) { this.blur(); return false; } }, delegateType: "focusout" }, click: { // For checkbox, fire native event so checked state will be right trigger: function() { if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { this.click(); return false; } }, // For cross-browser consistency, don't fire native .click() on links _default: function( event ) { return jQuery.nodeName( event.target, "a" ); } }, beforeunload: { postDispatch: function( event ) { // Support: Firefox 20+ // Firefox doesn't alert if the returnValue field is not set. if ( event.result !== undefined && event.originalEvent ) { event.originalEvent.returnValue = event.result; } } } } }; jQuery.removeEvent = function( elem, type, handle ) { // This "if" is needed for plain objects if ( elem.removeEventListener ) { elem.removeEventListener( type, handle ); } }; jQuery.Event = function( src, props ) { // Allow instantiation without the 'new' keyword if ( !( this instanceof jQuery.Event ) ) { return new jQuery.Event( src, props ); } // Event object if ( src && src.type ) { this.originalEvent = src; this.type = src.type; // Events bubbling up the document may have been marked as prevented // by a handler lower down the tree; reflect the correct value. this.isDefaultPrevented = src.defaultPrevented || src.defaultPrevented === undefined && // Support: Android <=2.3 only src.returnValue === false ? returnTrue : returnFalse; // Create target properties // Support: Safari <=6 - 7 only // Target should not be a text node (#504, #13143) this.target = ( src.target && src.target.nodeType === 3 ) ? src.target.parentNode : src.target; this.currentTarget = src.currentTarget; this.relatedTarget = src.relatedTarget; // Event type } else { this.type = src; } // Put explicitly provided properties onto the event object if ( props ) { jQuery.extend( this, props ); } // Create a timestamp if incoming event doesn't have one this.timeStamp = src && src.timeStamp || jQuery.now(); // Mark it as fixed this[ jQuery.expando ] = true; }; // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding // path_to_url jQuery.Event.prototype = { constructor: jQuery.Event, isDefaultPrevented: returnFalse, isPropagationStopped: returnFalse, isImmediatePropagationStopped: returnFalse, isSimulated: false, preventDefault: function() { var e = this.originalEvent; this.isDefaultPrevented = returnTrue; if ( e && !this.isSimulated ) { e.preventDefault(); } }, stopPropagation: function() { var e = this.originalEvent; this.isPropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopPropagation(); } }, stopImmediatePropagation: function() { var e = this.originalEvent; this.isImmediatePropagationStopped = returnTrue; if ( e && !this.isSimulated ) { e.stopImmediatePropagation(); } this.stopPropagation(); } }; // Includes all common event props including KeyEvent and MouseEvent specific props jQuery.each( { altKey: true, bubbles: true, cancelable: true, changedTouches: true, ctrlKey: true, detail: true, eventPhase: true, metaKey: true, pageX: true, pageY: true, shiftKey: true, view: true, "char": true, charCode: true, key: true, keyCode: true, button: true, buttons: true, clientX: true, clientY: true, offsetX: true, offsetY: true, pointerId: true, pointerType: true, screenX: true, screenY: true, targetTouches: true, toElement: true, touches: true, which: function( event ) { var button = event.button; // Add which for key events if ( event.which == null && rkeyEvent.test( event.type ) ) { return event.charCode != null ? event.charCode : event.keyCode; } // Add which for click: 1 === left; 2 === middle; 3 === right if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) { if ( button & 1 ) { return 1; } if ( button & 2 ) { return 3; } if ( button & 4 ) { return 2; } return 0; } return event.which; } }, jQuery.event.addProp ); // Create mouseenter/leave events using mouseover/out and event-time checks // so that event delegation works in jQuery. // Do the same for pointerenter/pointerleave and pointerover/pointerout // // Support: Safari 7 only // Safari sends mouseenter too often; see: // path_to_url // for the description of the bug (it existed in older Chrome versions as well). jQuery.each( { mouseenter: "mouseover", mouseleave: "mouseout", pointerenter: "pointerover", pointerleave: "pointerout" }, function( orig, fix ) { jQuery.event.special[ orig ] = { delegateType: fix, bindType: fix, handle: function( event ) { var ret, target = this, related = event.relatedTarget, handleObj = event.handleObj; // For mouseenter/leave call the handler if related is outside the target. // NB: No relatedTarget if the mouse left/entered the browser window if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) { event.type = handleObj.origType; ret = handleObj.handler.apply( this, arguments ); event.type = fix; } return ret; } }; } ); jQuery.fn.extend( { on: function( types, selector, data, fn ) { return on( this, types, selector, data, fn ); }, one: function( types, selector, data, fn ) { return on( this, types, selector, data, fn, 1 ); }, off: function( types, selector, fn ) { var handleObj, type; if ( types && types.preventDefault && types.handleObj ) { // ( event ) dispatched jQuery.Event handleObj = types.handleObj; jQuery( types.delegateTarget ).off( handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, handleObj.selector, handleObj.handler ); return this; } if ( typeof types === "object" ) { // ( types-object [, selector] ) for ( type in types ) { this.off( type, selector, types[ type ] ); } return this; } if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; } if ( fn === false ) { fn = returnFalse; } return this.each( function() { jQuery.event.remove( this, types, fn, selector ); } ); } } ); var /* eslint-disable max-len */ // See path_to_url rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi, /* eslint-enable */ // Support: IE <=10 - 11, Edge 12 - 13 // In IE/Edge using regex groups here causes severe slowdowns. // See path_to_url rnoInnerhtml = /<script|<style|<link/i, // checked="checked" or checked rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, rscriptTypeMasked = /^true\/(.*)/, rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g; function manipulationTarget( elem, content ) { if ( jQuery.nodeName( elem, "table" ) && jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) { return elem.getElementsByTagName( "tbody" )[ 0 ] || elem; } return elem; } // Replace/restore the type attribute of script elements for safe DOM manipulation function disableScript( elem ) { elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type; return elem; } function restoreScript( elem ) { var match = rscriptTypeMasked.exec( elem.type ); if ( match ) { elem.type = match[ 1 ]; } else { elem.removeAttribute( "type" ); } return elem; } function cloneCopyEvent( src, dest ) { var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; if ( dest.nodeType !== 1 ) { return; } // 1. Copy private data: events, handlers, etc. if ( dataPriv.hasData( src ) ) { pdataOld = dataPriv.access( src ); pdataCur = dataPriv.set( dest, pdataOld ); events = pdataOld.events; if ( events ) { delete pdataCur.handle; pdataCur.events = {}; for ( type in events ) { for ( i = 0, l = events[ type ].length; i < l; i++ ) { jQuery.event.add( dest, type, events[ type ][ i ] ); } } } } // 2. Copy user data if ( dataUser.hasData( src ) ) { udataOld = dataUser.access( src ); udataCur = jQuery.extend( {}, udataOld ); dataUser.set( dest, udataCur ); } } // Fix IE bugs, see support tests function fixInput( src, dest ) { var nodeName = dest.nodeName.toLowerCase(); // Fails to persist the checked state of a cloned checkbox or radio button. if ( nodeName === "input" && rcheckableType.test( src.type ) ) { dest.checked = src.checked; // Fails to return the selected option to the default selected state when cloning options } else if ( nodeName === "input" || nodeName === "textarea" ) { dest.defaultValue = src.defaultValue; } } function domManip( collection, args, callback, ignored ) { // Flatten any nested arrays args = concat.apply( [], args ); var fragment, first, scripts, hasScripts, node, doc, i = 0, l = collection.length, iNoClone = l - 1, value = args[ 0 ], isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit if ( isFunction || ( l > 1 && typeof value === "string" && !support.checkClone && rchecked.test( value ) ) ) { return collection.each( function( index ) { var self = collection.eq( index ); if ( isFunction ) { args[ 0 ] = value.call( this, index, self.html() ); } domManip( self, args, callback, ignored ); } ); } if ( l ) { fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored ); first = fragment.firstChild; if ( fragment.childNodes.length === 1 ) { fragment = first; } // Require either new content or an interest in ignored elements to invoke the callback if ( first || ignored ) { scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); hasScripts = scripts.length; // Use the original fragment for the last item // instead of the first because it can end up // being emptied incorrectly in certain situations (#8070). for ( ; i < l; i++ ) { node = fragment; if ( i !== iNoClone ) { node = jQuery.clone( node, true, true ); // Keep references to cloned scripts for later restoration if ( hasScripts ) { // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( scripts, getAll( node, "script" ) ); } } callback.call( collection[ i ], node, i ); } if ( hasScripts ) { doc = scripts[ scripts.length - 1 ].ownerDocument; // Reenable scripts jQuery.map( scripts, restoreScript ); // Evaluate executable scripts on first document insertion for ( i = 0; i < hasScripts; i++ ) { node = scripts[ i ]; if ( rscriptType.test( node.type || "" ) && !dataPriv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { if ( node.src ) { // Optional AJAX dependency, but won't run scripts if not present if ( jQuery._evalUrl ) { jQuery._evalUrl( node.src ); } } else { DOMEval( node.textContent.replace( rcleanScript, "" ), doc ); } } } } } } return collection; } function remove( elem, selector, keepData ) { var node, nodes = selector ? jQuery.filter( selector, elem ) : elem, i = 0; for ( ; ( node = nodes[ i ] ) != null; i++ ) { if ( !keepData && node.nodeType === 1 ) { jQuery.cleanData( getAll( node ) ); } if ( node.parentNode ) { if ( keepData && jQuery.contains( node.ownerDocument, node ) ) { setGlobalEval( getAll( node, "script" ) ); } node.parentNode.removeChild( node ); } } return elem; } jQuery.extend( { htmlPrefilter: function( html ) { return html.replace( rxhtmlTag, "<$1></$2>" ); }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { var i, l, srcElements, destElements, clone = elem.cloneNode( true ), inPage = jQuery.contains( elem.ownerDocument, elem ); // Fix IE cloning issues if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: path_to_url destElements = getAll( clone ); srcElements = getAll( elem ); for ( i = 0, l = srcElements.length; i < l; i++ ) { fixInput( srcElements[ i ], destElements[ i ] ); } } // Copy the events from the original to the clone if ( dataAndEvents ) { if ( deepDataAndEvents ) { srcElements = srcElements || getAll( elem ); destElements = destElements || getAll( clone ); for ( i = 0, l = srcElements.length; i < l; i++ ) { cloneCopyEvent( srcElements[ i ], destElements[ i ] ); } } else { cloneCopyEvent( elem, clone ); } } // Preserve script evaluation history destElements = getAll( clone, "script" ); if ( destElements.length > 0 ) { setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); } // Return the cloned set return clone; }, cleanData: function( elems ) { var data, elem, type, special = jQuery.event.special, i = 0; for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) { if ( acceptData( elem ) ) { if ( ( data = elem[ dataPriv.expando ] ) ) { if ( data.events ) { for ( type in data.events ) { if ( special[ type ] ) { jQuery.event.remove( elem, type ); // This is a shortcut to avoid jQuery.event.remove's overhead } else { jQuery.removeEvent( elem, type, data.handle ); } } } // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataPriv.expando ] = undefined; } if ( elem[ dataUser.expando ] ) { // Support: Chrome <=35 - 45+ // Assign undefined instead of using delete, see Data#remove elem[ dataUser.expando ] = undefined; } } } } } ); jQuery.fn.extend( { detach: function( selector ) { return remove( this, selector, true ); }, remove: function( selector ) { return remove( this, selector ); }, text: function( value ) { return access( this, function( value ) { return value === undefined ? jQuery.text( this ) : this.empty().each( function() { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { this.textContent = value; } } ); }, null, value, arguments.length ); }, append: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.appendChild( elem ); } } ); }, prepend: function() { return domManip( this, arguments, function( elem ) { if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { var target = manipulationTarget( this, elem ); target.insertBefore( elem, target.firstChild ); } } ); }, before: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this ); } } ); }, after: function() { return domManip( this, arguments, function( elem ) { if ( this.parentNode ) { this.parentNode.insertBefore( elem, this.nextSibling ); } } ); }, empty: function() { var elem, i = 0; for ( ; ( elem = this[ i ] ) != null; i++ ) { if ( elem.nodeType === 1 ) { // Prevent memory leaks jQuery.cleanData( getAll( elem, false ) ); // Remove any remaining nodes elem.textContent = ""; } } return this; }, clone: function( dataAndEvents, deepDataAndEvents ) { dataAndEvents = dataAndEvents == null ? false : dataAndEvents; deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; return this.map( function() { return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); } ); }, html: function( value ) { return access( this, function( value ) { var elem = this[ 0 ] || {}, i = 0, l = this.length; if ( value === undefined && elem.nodeType === 1 ) { return elem.innerHTML; } // See if we can take a shortcut and just use innerHTML if ( typeof value === "string" && !rnoInnerhtml.test( value ) && !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { value = jQuery.htmlPrefilter( value ); try { for ( ; i < l; i++ ) { elem = this[ i ] || {}; // Remove element nodes and prevent memory leaks if ( elem.nodeType === 1 ) { jQuery.cleanData( getAll( elem, false ) ); elem.innerHTML = value; } } elem = 0; // If using innerHTML throws an exception, use the fallback method } catch ( e ) {} } if ( elem ) { this.empty().append( value ); } }, null, value, arguments.length ); }, replaceWith: function() { var ignored = []; // Make the changes, replacing each non-ignored context element with the new content return domManip( this, arguments, function( elem ) { var parent = this.parentNode; if ( jQuery.inArray( this, ignored ) < 0 ) { jQuery.cleanData( getAll( this ) ); if ( parent ) { parent.replaceChild( elem, this ); } } // Force callback invocation }, ignored ); } } ); jQuery.each( { appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function( name, original ) { jQuery.fn[ name ] = function( selector ) { var elems, ret = [], insert = jQuery( selector ), last = insert.length - 1, i = 0; for ( ; i <= last; i++ ) { elems = i === last ? this : this.clone( true ); jQuery( insert[ i ] )[ original ]( elems ); // Support: Android <=4.0 only, PhantomJS 1 only // .get() because push.apply(_, arraylike) throws on ancient WebKit push.apply( ret, elems.get() ); } return this.pushStack( ret ); }; } ); var rmargin = ( /^margin/ ); var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); var getStyles = function( elem ) { // Support: IE <=11 only, Firefox <=30 (#15098, #14150) // IE throws on elements created in popups // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" var view = elem.ownerDocument.defaultView; if ( !view || !view.opener ) { view = window; } return view.getComputedStyle( elem ); }; ( function() { // Executing both pixelPosition & boxSizingReliable tests require only one layout // so they're executed at the same time to save the second computation. function computeStyleTests() { // This is a singleton, we need to execute it only once if ( !div ) { return; } div.style.cssText = "box-sizing:border-box;" + "position:relative;display:block;" + "margin:auto;border:1px;padding:1px;" + "top:1%;width:50%"; div.innerHTML = ""; documentElement.appendChild( container ); var divStyle = window.getComputedStyle( div ); pixelPositionVal = divStyle.top !== "1%"; // Support: Android 4.0 - 4.3 only, Firefox <=3 - 44 reliableMarginLeftVal = divStyle.marginLeft === "2px"; boxSizingReliableVal = divStyle.width === "4px"; // Support: Android 4.0 - 4.3 only // Some styles come back with percentage values, even though they shouldn't div.style.marginRight = "50%"; pixelMarginRightVal = divStyle.marginRight === "4px"; documentElement.removeChild( container ); // Nullify the div so it wouldn't be stored in the memory and // it will also be a sign that checks already performed div = null; } var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal, container = document.createElement( "div" ), div = document.createElement( "div" ); // Finish early in limited (non-browser) environments if ( !div.style ) { return; } // Support: IE <=9 - 11 only // Style of cloned element affects source element cloned (#8908) div.style.backgroundClip = "content-box"; div.cloneNode( true ).style.backgroundClip = ""; support.clearCloneStyle = div.style.backgroundClip === "content-box"; container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" + "padding:0;margin-top:1px;position:absolute"; container.appendChild( div ); jQuery.extend( support, { pixelPosition: function() { computeStyleTests(); return pixelPositionVal; }, boxSizingReliable: function() { computeStyleTests(); return boxSizingReliableVal; }, pixelMarginRight: function() { computeStyleTests(); return pixelMarginRightVal; }, reliableMarginLeft: function() { computeStyleTests(); return reliableMarginLeftVal; } } ); } )(); function curCSS( elem, name, computed ) { var width, minWidth, maxWidth, ret, style = elem.style; computed = computed || getStyles( elem ); // Support: IE <=9 only // getPropertyValue is only needed for .css('filter') (#12537) if ( computed ) { ret = computed.getPropertyValue( name ) || computed[ name ]; if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } // A tribute to the "awesome hack by Dean Edwards" // Android Browser returns percentage for some values, // but width seems to be reliably pixels. // This is against the CSSOM draft spec: // path_to_url#resolved-values if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) { // Remember the original values width = style.width; minWidth = style.minWidth; maxWidth = style.maxWidth; // Put in the new values to get a computed value out style.minWidth = style.maxWidth = style.width = ret; ret = computed.width; // Revert the changed values style.width = width; style.minWidth = minWidth; style.maxWidth = maxWidth; } } return ret !== undefined ? // Support: IE <=9 - 11 only // IE returns zIndex value as an integer. ret + "" : ret; } function addGetHookIf( conditionFn, hookFn ) { // Define the hook, we'll check on the first run if it's really needed. return { get: function() { if ( conditionFn() ) { // Hook not needed (or it's not possible to use it due // to missing dependency), remove it. delete this.get; return; } // Hook needed; redefine it so that the support test is not executed again. return ( this.get = hookFn ).apply( this, arguments ); } }; } var // Swappable if display is none or starts with table // except "table", "table-cell", or "table-caption" // See here for display values: path_to_url rdisplayswap = /^(none|table(?!-c[ea]).+)/, cssShow = { position: "absolute", visibility: "hidden", display: "block" }, cssNormalTransform = { letterSpacing: "0", fontWeight: "400" }, cssPrefixes = [ "Webkit", "Moz", "ms" ], emptyStyle = document.createElement( "div" ).style; // Return a css property mapped to a potentially vendor prefixed property function vendorPropName( name ) { // Shortcut for names that are not vendor prefixed if ( name in emptyStyle ) { return name; } // Check for vendor prefixed names var capName = name[ 0 ].toUpperCase() + name.slice( 1 ), i = cssPrefixes.length; while ( i-- ) { name = cssPrefixes[ i ] + capName; if ( name in emptyStyle ) { return name; } } } function setPositiveNumber( elem, value, subtract ) { // Any relative (+/-) values have already been // normalized at this point var matches = rcssNum.exec( value ); return matches ? // Guard against undefined "subtract", e.g., when used as in cssHooks Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) : value; } function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { var i, val = 0; // If we already have the right measurement, avoid augmentation if ( extra === ( isBorderBox ? "border" : "content" ) ) { i = 4; // Otherwise initialize for horizontal or vertical properties } else { i = name === "width" ? 1 : 0; } for ( ; i < 4; i += 2 ) { // Both box models exclude margin, so add it if we want it if ( extra === "margin" ) { val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); } if ( isBorderBox ) { // border-box includes padding, so remove it if we want content if ( extra === "content" ) { val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); } // At this point, extra isn't border nor margin, so remove border if ( extra !== "margin" ) { val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } else { // At this point, extra isn't content, so add padding val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); // At this point, extra isn't content nor padding, so add border if ( extra !== "padding" ) { val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); } } } return val; } function getWidthOrHeight( elem, name, extra ) { // Start with offset property, which is equivalent to the border-box value var val, valueIsBorderBox = true, styles = getStyles( elem ), isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. if ( elem.getClientRects().length ) { val = elem.getBoundingClientRect()[ name ]; } // Some non-html elements return undefined for offsetWidth, so check for null/undefined // svg - path_to_url // MathML - path_to_url if ( val <= 0 || val == null ) { // Fall back to computed then uncomputed css if necessary val = curCSS( elem, name, styles ); if ( val < 0 || val == null ) { val = elem.style[ name ]; } // Computed unit is not pixels. Stop here and return. if ( rnumnonpx.test( val ) ) { return val; } // Check for style in case a browser which returns unreliable values // for getComputedStyle silently falls back to the reliable elem.style valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] ); // Normalize "", auto, and prepare for extra val = parseFloat( val ) || 0; } // Use the active box-sizing model to add/subtract irrelevant styles return ( val + augmentWidthOrHeight( elem, name, extra || ( isBorderBox ? "border" : "content" ), valueIsBorderBox, styles ) ) + "px"; } jQuery.extend( { // Add in style property hooks for overriding the default // behavior of getting and setting a style property cssHooks: { opacity: { get: function( elem, computed ) { if ( computed ) { // We should always get a number back from opacity var ret = curCSS( elem, "opacity" ); return ret === "" ? "1" : ret; } } } }, // Don't automatically add "px" to these possibly-unitless properties cssNumber: { "animationIterationCount": true, "columnCount": true, "fillOpacity": true, "flexGrow": true, "flexShrink": true, "fontWeight": true, "lineHeight": true, "opacity": true, "order": true, "orphans": true, "widows": true, "zIndex": true, "zoom": true }, // Add in properties whose names you wish to fix before // setting or getting the value cssProps: { "float": "cssFloat" }, // Get and set the style property on a DOM Node style: function( elem, name, value, extra ) { // Don't set styles on text and comment nodes if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { return; } // Make sure that we're working with the right name var ret, type, hooks, origName = jQuery.camelCase( name ), style = elem.style; name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName ); // Gets hook for the prefixed version, then unprefixed version hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // Check if we're setting a value if ( value !== undefined ) { type = typeof value; // Convert "+=" or "-=" to relative numbers (#7345) if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) { value = adjustCSS( elem, name, ret ); // Fixes bug #9237 type = "number"; } // Make sure that null and NaN values aren't set (#7116) if ( value == null || value !== value ) { return; } // If a number was passed in, add the unit (except for certain CSS properties) if ( type === "number" ) { value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" ); } // background-* props affect original clone's values if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) { style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !( "set" in hooks ) || ( value = hooks.set( elem, value, extra ) ) !== undefined ) { style[ name ] = value; } } else { // If a hook was provided get the non-computed value from there if ( hooks && "get" in hooks && ( ret = hooks.get( elem, false, extra ) ) !== undefined ) { return ret; } // Otherwise just get the value from the style object return style[ name ]; } }, css: function( elem, name, extra, styles ) { var val, num, hooks, origName = jQuery.camelCase( name ); // Make sure that we're working with the right name name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName ); // Try prefixed name followed by the unprefixed name hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; // If a hook was provided get the computed value from there if ( hooks && "get" in hooks ) { val = hooks.get( elem, true, extra ); } // Otherwise, if a way to get the computed value exists, use that if ( val === undefined ) { val = curCSS( elem, name, styles ); } // Convert "normal" to computed value if ( val === "normal" && name in cssNormalTransform ) { val = cssNormalTransform[ name ]; } // Make numeric if forced or a qualifier was provided and val looks numeric if ( extra === "" || extra ) { num = parseFloat( val ); return extra === true || isFinite( num ) ? num || 0 : val; } return val; } } ); jQuery.each( [ "height", "width" ], function( i, name ) { jQuery.cssHooks[ name ] = { get: function( elem, computed, extra ) { if ( computed ) { // Certain elements can have dimension info if we invisibly show them // but it must have a current display style that would benefit return rdisplayswap.test( jQuery.css( elem, "display" ) ) && // Support: Safari 8+ // Table columns in Safari have non-zero offsetWidth & zero // getBoundingClientRect().width unless display is changed. // Support: IE <=11 only // Running getBoundingClientRect on a disconnected node // in IE throws an error. ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ? swap( elem, cssShow, function() { return getWidthOrHeight( elem, name, extra ); } ) : getWidthOrHeight( elem, name, extra ); } }, set: function( elem, value, extra ) { var matches, styles = extra && getStyles( elem ), subtract = extra && augmentWidthOrHeight( elem, name, extra, jQuery.css( elem, "boxSizing", false, styles ) === "border-box", styles ); // Convert to pixels if value adjustment is needed if ( subtract && ( matches = rcssNum.exec( value ) ) && ( matches[ 3 ] || "px" ) !== "px" ) { elem.style[ name ] = value; value = jQuery.css( elem, name ); } return setPositiveNumber( elem, value, subtract ); } }; } ); jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft, function( elem, computed ) { if ( computed ) { return ( parseFloat( curCSS( elem, "marginLeft" ) ) || elem.getBoundingClientRect().left - swap( elem, { marginLeft: 0 }, function() { return elem.getBoundingClientRect().left; } ) ) + "px"; } } ); // These hooks are used by animate to expand properties jQuery.each( { margin: "", padding: "", border: "Width" }, function( prefix, suffix ) { jQuery.cssHooks[ prefix + suffix ] = { expand: function( value ) { var i = 0, expanded = {}, // Assumes a single number if not a string parts = typeof value === "string" ? value.split( " " ) : [ value ]; for ( ; i < 4; i++ ) { expanded[ prefix + cssExpand[ i ] + suffix ] = parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; } return expanded; } }; if ( !rmargin.test( prefix ) ) { jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; } } ); jQuery.fn.extend( { css: function( name, value ) { return access( this, function( elem, name, value ) { var styles, len, map = {}, i = 0; if ( jQuery.isArray( name ) ) { styles = getStyles( elem ); len = name.length; for ( ; i < len; i++ ) { map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); } return map; } return value !== undefined ? jQuery.style( elem, name, value ) : jQuery.css( elem, name ); }, name, value, arguments.length > 1 ); } } ); function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = elem; this.prop = prop; this.easing = easing || jQuery.easing._default; this.options = options; this.start = this.now = this.cur(); this.end = end; this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); }, cur: function() { var hooks = Tween.propHooks[ this.prop ]; return hooks && hooks.get ? hooks.get( this ) : Tween.propHooks._default.get( this ); }, run: function( percent ) { var eased, hooks = Tween.propHooks[ this.prop ]; if ( this.options.duration ) { this.pos = eased = jQuery.easing[ this.easing ]( percent, this.options.duration * percent, 0, 1, this.options.duration ); } else { this.pos = eased = percent; } this.now = ( this.end - this.start ) * eased + this.start; if ( this.options.step ) { this.options.step.call( this.elem, this.now, this ); } if ( hooks && hooks.set ) { hooks.set( this ); } else { Tween.propHooks._default.set( this ); } return this; } }; Tween.prototype.init.prototype = Tween.prototype; Tween.propHooks = { _default: { get: function( tween ) { var result; // Use a property on the element directly when it is not a DOM element, // or when there is no matching style property that exists. if ( tween.elem.nodeType !== 1 || tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) { return tween.elem[ tween.prop ]; } // Passing an empty string as a 3rd parameter to .css will automatically // attempt a parseFloat and fallback to a string if the parse fails. // Simple values such as "10px" are parsed to Float; // complex values such as "rotate(1rad)" are returned as-is. result = jQuery.css( tween.elem, tween.prop, "" ); // Empty strings, null, undefined and "auto" are converted to 0. return !result || result === "auto" ? 0 : result; }, set: function( tween ) { // Use step hook for back compat. // Use cssHook if its there. // Use .style if available and use plain properties where available. if ( jQuery.fx.step[ tween.prop ] ) { jQuery.fx.step[ tween.prop ]( tween ); } else if ( tween.elem.nodeType === 1 && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); } else { tween.elem[ tween.prop ] = tween.now; } } } }; // Support: IE <=9 only // Panic based approach to setting things on disconnected nodes Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { set: function( tween ) { if ( tween.elem.nodeType && tween.elem.parentNode ) { tween.elem[ tween.prop ] = tween.now; } } }; jQuery.easing = { linear: function( p ) { return p; }, swing: function( p ) { return 0.5 - Math.cos( p * Math.PI ) / 2; }, _default: "swing" }; jQuery.fx = Tween.prototype.init; // Back compat <1.8 extension point jQuery.fx.step = {}; var fxNow, timerId, rfxtypes = /^(?:toggle|show|hide)$/, rrun = /queueHooks$/; function raf() { if ( timerId ) { window.requestAnimationFrame( raf ); jQuery.fx.tick(); } } // Animations created synchronously will run synchronously function createFxNow() { window.setTimeout( function() { fxNow = undefined; } ); return ( fxNow = jQuery.now() ); } // Generate parameters to create a standard animation function genFx( type, includeWidth ) { var which, i = 0, attrs = { height: type }; // If we include width, step value is 1 to do all cssExpand values, // otherwise step value is 2 to skip over Left and Right includeWidth = includeWidth ? 1 : 0; for ( ; i < 4; i += 2 - includeWidth ) { which = cssExpand[ i ]; attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; } if ( includeWidth ) { attrs.opacity = attrs.width = type; } return attrs; } function createTween( value, prop, animation ) { var tween, collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ), index = 0, length = collection.length; for ( ; index < length; index++ ) { if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) { // We're done with this property return tween; } } } function defaultPrefilter( elem, props, opts ) { var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display, isBox = "width" in props || "height" in props, anim = this, orig = {}, style = elem.style, hidden = elem.nodeType && isHiddenWithinTree( elem ), dataShow = dataPriv.get( elem, "fxshow" ); // Queue-skipping animations hijack the fx hooks if ( !opts.queue ) { hooks = jQuery._queueHooks( elem, "fx" ); if ( hooks.unqueued == null ) { hooks.unqueued = 0; oldfire = hooks.empty.fire; hooks.empty.fire = function() { if ( !hooks.unqueued ) { oldfire(); } }; } hooks.unqueued++; anim.always( function() { // Ensure the complete handler is called before this completes anim.always( function() { hooks.unqueued--; if ( !jQuery.queue( elem, "fx" ).length ) { hooks.empty.fire(); } } ); } ); } // Detect show/hide animations for ( prop in props ) { value = props[ prop ]; if ( rfxtypes.test( value ) ) { delete props[ prop ]; toggle = toggle || value === "toggle"; if ( value === ( hidden ? "hide" : "show" ) ) { // Pretend to be hidden if this is a "show" and // there is still data from a stopped show/hide if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { hidden = true; // Ignore all other no-op show/hide data } else { continue; } } orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); } } // Bail out if this is a no-op like .hide().hide() propTween = !jQuery.isEmptyObject( props ); if ( !propTween && jQuery.isEmptyObject( orig ) ) { return; } // Restrict "overflow" and "display" styles during box animations if ( isBox && elem.nodeType === 1 ) { // Support: IE <=9 - 11, Edge 12 - 13 // Record all 3 overflow attributes because IE does not infer the shorthand // from identically-valued overflowX and overflowY opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; // Identify a display type, preferring old show/hide data over the CSS cascade restoreDisplay = dataShow && dataShow.display; if ( restoreDisplay == null ) { restoreDisplay = dataPriv.get( elem, "display" ); } display = jQuery.css( elem, "display" ); if ( display === "none" ) { if ( restoreDisplay ) { display = restoreDisplay; } else { // Get nonempty value(s) by temporarily forcing visibility showHide( [ elem ], true ); restoreDisplay = elem.style.display || restoreDisplay; display = jQuery.css( elem, "display" ); showHide( [ elem ] ); } } // Animate inline elements as inline-block if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) { if ( jQuery.css( elem, "float" ) === "none" ) { // Restore the original display value at the end of pure show/hide animations if ( !propTween ) { anim.done( function() { style.display = restoreDisplay; } ); if ( restoreDisplay == null ) { display = style.display; restoreDisplay = display === "none" ? "" : display; } } style.display = "inline-block"; } } } if ( opts.overflow ) { style.overflow = "hidden"; anim.always( function() { style.overflow = opts.overflow[ 0 ]; style.overflowX = opts.overflow[ 1 ]; style.overflowY = opts.overflow[ 2 ]; } ); } // Implement show/hide animations propTween = false; for ( prop in orig ) { // General show/hide setup for this element animation if ( !propTween ) { if ( dataShow ) { if ( "hidden" in dataShow ) { hidden = dataShow.hidden; } } else { dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } ); } // Store hidden/visible for toggle so `.stop().toggle()` "reverses" if ( toggle ) { dataShow.hidden = !hidden; } // Show elements before animating them if ( hidden ) { showHide( [ elem ], true ); } /* eslint-disable no-loop-func */ anim.done( function() { /* eslint-enable no-loop-func */ // The final step of a "hide" animation is actually hiding the element if ( !hidden ) { showHide( [ elem ] ); } dataPriv.remove( elem, "fxshow" ); for ( prop in orig ) { jQuery.style( elem, prop, orig[ prop ] ); } } ); } // Per-property setup propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); if ( !( prop in dataShow ) ) { dataShow[ prop ] = propTween.start; if ( hidden ) { propTween.end = propTween.start; propTween.start = 0; } } } } function propFilter( props, specialEasing ) { var index, name, easing, value, hooks; // camelCase, specialEasing and expand cssHook pass for ( index in props ) { name = jQuery.camelCase( index ); easing = specialEasing[ name ]; value = props[ index ]; if ( jQuery.isArray( value ) ) { easing = value[ 1 ]; value = props[ index ] = value[ 0 ]; } if ( index !== name ) { props[ name ] = value; delete props[ index ]; } hooks = jQuery.cssHooks[ name ]; if ( hooks && "expand" in hooks ) { value = hooks.expand( value ); delete props[ name ]; // Not quite $.extend, this won't overwrite existing keys. // Reusing 'index' because we have the correct "name" for ( index in value ) { if ( !( index in props ) ) { props[ index ] = value[ index ]; specialEasing[ index ] = easing; } } } else { specialEasing[ name ] = easing; } } } function Animation( elem, properties, options ) { var result, stopped, index = 0, length = Animation.prefilters.length, deferred = jQuery.Deferred().always( function() { // Don't match elem in the :animated selector delete tick.elem; } ), tick = function() { if ( stopped ) { return false; } var currentTime = fxNow || createFxNow(), remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), // Support: Android 2.3 only // Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497) temp = remaining / animation.duration || 0, percent = 1 - temp, index = 0, length = animation.tweens.length; for ( ; index < length; index++ ) { animation.tweens[ index ].run( percent ); } deferred.notifyWith( elem, [ animation, percent, remaining ] ); if ( percent < 1 && length ) { return remaining; } else { deferred.resolveWith( elem, [ animation ] ); return false; } }, animation = deferred.promise( { elem: elem, props: jQuery.extend( {}, properties ), opts: jQuery.extend( true, { specialEasing: {}, easing: jQuery.easing._default }, options ), originalProperties: properties, originalOptions: options, startTime: fxNow || createFxNow(), duration: options.duration, tweens: [], createTween: function( prop, end ) { var tween = jQuery.Tween( elem, animation.opts, prop, end, animation.opts.specialEasing[ prop ] || animation.opts.easing ); animation.tweens.push( tween ); return tween; }, stop: function( gotoEnd ) { var index = 0, // If we are going to the end, we want to run all the tweens // otherwise we skip this part length = gotoEnd ? animation.tweens.length : 0; if ( stopped ) { return this; } stopped = true; for ( ; index < length; index++ ) { animation.tweens[ index ].run( 1 ); } // Resolve when we played the last frame; otherwise, reject if ( gotoEnd ) { deferred.notifyWith( elem, [ animation, 1, 0 ] ); deferred.resolveWith( elem, [ animation, gotoEnd ] ); } else { deferred.rejectWith( elem, [ animation, gotoEnd ] ); } return this; } } ), props = animation.props; propFilter( props, animation.opts.specialEasing ); for ( ; index < length; index++ ) { result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts ); if ( result ) { if ( jQuery.isFunction( result.stop ) ) { jQuery._queueHooks( animation.elem, animation.opts.queue ).stop = jQuery.proxy( result.stop, result ); } return result; } } jQuery.map( props, createTween, animation ); if ( jQuery.isFunction( animation.opts.start ) ) { animation.opts.start.call( elem, animation ); } jQuery.fx.timer( jQuery.extend( tick, { elem: elem, anim: animation, queue: animation.opts.queue } ) ); // attach callbacks from options return animation.progress( animation.opts.progress ) .done( animation.opts.done, animation.opts.complete ) .fail( animation.opts.fail ) .always( animation.opts.always ); } jQuery.Animation = jQuery.extend( Animation, { tweeners: { "*": [ function( prop, value ) { var tween = this.createTween( prop, value ); adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween ); return tween; } ] }, tweener: function( props, callback ) { if ( jQuery.isFunction( props ) ) { callback = props; props = [ "*" ]; } else { props = props.match( rnothtmlwhite ); } var prop, index = 0, length = props.length; for ( ; index < length; index++ ) { prop = props[ index ]; Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || []; Animation.tweeners[ prop ].unshift( callback ); } }, prefilters: [ defaultPrefilter ], prefilter: function( callback, prepend ) { if ( prepend ) { Animation.prefilters.unshift( callback ); } else { Animation.prefilters.push( callback ); } } } ); jQuery.speed = function( speed, easing, fn ) { var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { complete: fn || !fn && easing || jQuery.isFunction( speed ) && speed, duration: speed, easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing }; // Go to the end state if fx are off or if document is hidden if ( jQuery.fx.off || document.hidden ) { opt.duration = 0; } else { if ( typeof opt.duration !== "number" ) { if ( opt.duration in jQuery.fx.speeds ) { opt.duration = jQuery.fx.speeds[ opt.duration ]; } else { opt.duration = jQuery.fx.speeds._default; } } } // Normalize opt.queue - true/undefined/null -> "fx" if ( opt.queue == null || opt.queue === true ) { opt.queue = "fx"; } // Queueing opt.old = opt.complete; opt.complete = function() { if ( jQuery.isFunction( opt.old ) ) { opt.old.call( this ); } if ( opt.queue ) { jQuery.dequeue( this, opt.queue ); } }; return opt; }; jQuery.fn.extend( { fadeTo: function( speed, to, easing, callback ) { // Show any hidden elements after setting opacity to 0 return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show() // Animate to the value specified .end().animate( { opacity: to }, speed, easing, callback ); }, animate: function( prop, speed, easing, callback ) { var empty = jQuery.isEmptyObject( prop ), optall = jQuery.speed( speed, easing, callback ), doAnimation = function() { // Operate on a copy of prop so per-property easing won't be lost var anim = Animation( this, jQuery.extend( {}, prop ), optall ); // Empty animations, or finishing resolves immediately if ( empty || dataPriv.get( this, "finish" ) ) { anim.stop( true ); } }; doAnimation.finish = doAnimation; return empty || optall.queue === false ? this.each( doAnimation ) : this.queue( optall.queue, doAnimation ); }, stop: function( type, clearQueue, gotoEnd ) { var stopQueue = function( hooks ) { var stop = hooks.stop; delete hooks.stop; stop( gotoEnd ); }; if ( typeof type !== "string" ) { gotoEnd = clearQueue; clearQueue = type; type = undefined; } if ( clearQueue && type !== false ) { this.queue( type || "fx", [] ); } return this.each( function() { var dequeue = true, index = type != null && type + "queueHooks", timers = jQuery.timers, data = dataPriv.get( this ); if ( index ) { if ( data[ index ] && data[ index ].stop ) { stopQueue( data[ index ] ); } } else { for ( index in data ) { if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { stopQueue( data[ index ] ); } } } for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && ( type == null || timers[ index ].queue === type ) ) { timers[ index ].anim.stop( gotoEnd ); dequeue = false; timers.splice( index, 1 ); } } // Start the next in the queue if the last step wasn't forced. // Timers currently will call their complete callbacks, which // will dequeue but only if they were gotoEnd. if ( dequeue || !gotoEnd ) { jQuery.dequeue( this, type ); } } ); }, finish: function( type ) { if ( type !== false ) { type = type || "fx"; } return this.each( function() { var index, data = dataPriv.get( this ), queue = data[ type + "queue" ], hooks = data[ type + "queueHooks" ], timers = jQuery.timers, length = queue ? queue.length : 0; // Enable finishing flag on private data data.finish = true; // Empty the queue first jQuery.queue( this, type, [] ); if ( hooks && hooks.stop ) { hooks.stop.call( this, true ); } // Look for any active animations, and finish them for ( index = timers.length; index--; ) { if ( timers[ index ].elem === this && timers[ index ].queue === type ) { timers[ index ].anim.stop( true ); timers.splice( index, 1 ); } } // Look for any animations in the old queue and finish them for ( index = 0; index < length; index++ ) { if ( queue[ index ] && queue[ index ].finish ) { queue[ index ].finish.call( this ); } } // Turn off finishing flag delete data.finish; } ); } } ); jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) { var cssFn = jQuery.fn[ name ]; jQuery.fn[ name ] = function( speed, easing, callback ) { return speed == null || typeof speed === "boolean" ? cssFn.apply( this, arguments ) : this.animate( genFx( name, true ), speed, easing, callback ); }; } ); // Generate shortcuts for custom animations jQuery.each( { slideDown: genFx( "show" ), slideUp: genFx( "hide" ), slideToggle: genFx( "toggle" ), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide" }, fadeToggle: { opacity: "toggle" } }, function( name, props ) { jQuery.fn[ name ] = function( speed, easing, callback ) { return this.animate( props, speed, easing, callback ); }; } ); jQuery.timers = []; jQuery.fx.tick = function() { var timer, i = 0, timers = jQuery.timers; fxNow = jQuery.now(); for ( ; i < timers.length; i++ ) { timer = timers[ i ]; // Checks the timer has not already been removed if ( !timer() && timers[ i ] === timer ) { timers.splice( i--, 1 ); } } if ( !timers.length ) { jQuery.fx.stop(); } fxNow = undefined; }; jQuery.fx.timer = function( timer ) { jQuery.timers.push( timer ); if ( timer() ) { jQuery.fx.start(); } else { jQuery.timers.pop(); } }; jQuery.fx.interval = 13; jQuery.fx.start = function() { if ( !timerId ) { timerId = window.requestAnimationFrame ? window.requestAnimationFrame( raf ) : window.setInterval( jQuery.fx.tick, jQuery.fx.interval ); } }; jQuery.fx.stop = function() { if ( window.cancelAnimationFrame ) { window.cancelAnimationFrame( timerId ); } else { window.clearInterval( timerId ); } timerId = null; }; jQuery.fx.speeds = { slow: 600, fast: 200, // Default speed _default: 400 }; // Based off of the plugin by Clint Helfers, with permission. // path_to_url jQuery.fn.delay = function( time, type ) { time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; type = type || "fx"; return this.queue( type, function( next, hooks ) { var timeout = window.setTimeout( next, time ); hooks.stop = function() { window.clearTimeout( timeout ); }; } ); }; ( function() { var input = document.createElement( "input" ), select = document.createElement( "select" ), opt = select.appendChild( document.createElement( "option" ) ); input.type = "checkbox"; // Support: Android <=4.3 only // Default value for a checkbox should be "on" support.checkOn = input.value !== ""; // Support: IE <=11 only // Must access selectedIndex to make default options select support.optSelected = opt.selected; // Support: IE <=11 only // An input loses its value after becoming a radio input = document.createElement( "input" ); input.value = "t"; input.type = "radio"; support.radioValue = input.value === "t"; } )(); var boolHook, attrHandle = jQuery.expr.attrHandle; jQuery.fn.extend( { attr: function( name, value ) { return access( this, jQuery.attr, name, value, arguments.length > 1 ); }, removeAttr: function( name ) { return this.each( function() { jQuery.removeAttr( this, name ); } ); } } ); jQuery.extend( { attr: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set attributes on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } // Fallback to prop when attributes are not supported if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } // Attribute hooks are determined by the lowercase version // Grab necessary hook if one is defined if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { hooks = jQuery.attrHooks[ name.toLowerCase() ] || ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined ); } if ( value !== undefined ) { if ( value === null ) { jQuery.removeAttr( elem, name ); return; } if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } elem.setAttribute( name, value + "" ); return value; } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } ret = jQuery.find.attr( elem, name ); // Non-existent attributes return null, we normalize to undefined return ret == null ? undefined : ret; }, attrHooks: { type: { set: function( elem, value ) { if ( !support.radioValue && value === "radio" && jQuery.nodeName( elem, "input" ) ) { var val = elem.value; elem.setAttribute( "type", value ); if ( val ) { elem.value = val; } return value; } } } }, removeAttr: function( elem, value ) { var name, i = 0, // Attribute names can contain non-HTML whitespace characters // path_to_url#attributes-2 attrNames = value && value.match( rnothtmlwhite ); if ( attrNames && elem.nodeType === 1 ) { while ( ( name = attrNames[ i++ ] ) ) { elem.removeAttribute( name ); } } } } ); // Hooks for boolean attributes boolHook = { set: function( elem, value, name ) { if ( value === false ) { // Remove boolean attributes when set to false jQuery.removeAttr( elem, name ); } else { elem.setAttribute( name, name ); } return name; } }; jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { var getter = attrHandle[ name ] || jQuery.find.attr; attrHandle[ name ] = function( elem, name, isXML ) { var ret, handle, lowercaseName = name.toLowerCase(); if ( !isXML ) { // Avoid an infinite loop by temporarily removing this function from the getter handle = attrHandle[ lowercaseName ]; attrHandle[ lowercaseName ] = ret; ret = getter( elem, name, isXML ) != null ? lowercaseName : null; attrHandle[ lowercaseName ] = handle; } return ret; }; } ); var rfocusable = /^(?:input|select|textarea|button)$/i, rclickable = /^(?:a|area)$/i; jQuery.fn.extend( { prop: function( name, value ) { return access( this, jQuery.prop, name, value, arguments.length > 1 ); }, removeProp: function( name ) { return this.each( function() { delete this[ jQuery.propFix[ name ] || name ]; } ); } } ); jQuery.extend( { prop: function( elem, name, value ) { var ret, hooks, nType = elem.nodeType; // Don't get/set properties on text, comment and attribute nodes if ( nType === 3 || nType === 8 || nType === 2 ) { return; } if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { // Fix name and attach hooks name = jQuery.propFix[ name ] || name; hooks = jQuery.propHooks[ name ]; } if ( value !== undefined ) { if ( hooks && "set" in hooks && ( ret = hooks.set( elem, value, name ) ) !== undefined ) { return ret; } return ( elem[ name ] = value ); } if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) { return ret; } return elem[ name ]; }, propHooks: { tabIndex: { get: function( elem ) { // Support: IE <=9 - 11 only // elem.tabIndex doesn't always return the // correct value when it hasn't been explicitly set // path_to_url // Use proper attribute retrieval(#12072) var tabindex = jQuery.find.attr( elem, "tabindex" ); if ( tabindex ) { return parseInt( tabindex, 10 ); } if ( rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ) { return 0; } return -1; } } }, propFix: { "for": "htmlFor", "class": "className" } } ); // Support: IE <=11 only // Accessing the selectedIndex property // forces the browser to respect setting selected // on the option // The getter ensures a default option is selected // when in an optgroup // eslint rule "no-unused-expressions" is disabled for this code // since it considers such accessions noop if ( !support.optSelected ) { jQuery.propHooks.selected = { get: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent && parent.parentNode ) { parent.parentNode.selectedIndex; } return null; }, set: function( elem ) { /* eslint no-unused-expressions: "off" */ var parent = elem.parentNode; if ( parent ) { parent.selectedIndex; if ( parent.parentNode ) { parent.parentNode.selectedIndex; } } } }; } jQuery.each( [ "tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable" ], function() { jQuery.propFix[ this.toLowerCase() ] = this; } ); // Strip and collapse whitespace according to HTML spec // path_to_url#strip-and-collapse-whitespace function stripAndCollapse( value ) { var tokens = value.match( rnothtmlwhite ) || []; return tokens.join( " " ); } function getClass( elem ) { return elem.getAttribute && elem.getAttribute( "class" ) || ""; } jQuery.fn.extend( { addClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( jQuery.isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).addClass( value.call( this, j, getClass( this ) ) ); } ); } if ( typeof value === "string" && value ) { classes = value.match( rnothtmlwhite ) || []; while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { if ( cur.indexOf( " " + clazz + " " ) < 0 ) { cur += clazz + " "; } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, removeClass: function( value ) { var classes, elem, cur, curValue, clazz, j, finalValue, i = 0; if ( jQuery.isFunction( value ) ) { return this.each( function( j ) { jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) ); } ); } if ( !arguments.length ) { return this.attr( "class", "" ); } if ( typeof value === "string" && value ) { classes = value.match( rnothtmlwhite ) || []; while ( ( elem = this[ i++ ] ) ) { curValue = getClass( elem ); // This expression is here for better compressibility (see addClass) cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " ); if ( cur ) { j = 0; while ( ( clazz = classes[ j++ ] ) ) { // Remove *all* instances while ( cur.indexOf( " " + clazz + " " ) > -1 ) { cur = cur.replace( " " + clazz + " ", " " ); } } // Only assign if different to avoid unneeded rendering. finalValue = stripAndCollapse( cur ); if ( curValue !== finalValue ) { elem.setAttribute( "class", finalValue ); } } } } return this; }, toggleClass: function( value, stateVal ) { var type = typeof value; if ( typeof stateVal === "boolean" && type === "string" ) { return stateVal ? this.addClass( value ) : this.removeClass( value ); } if ( jQuery.isFunction( value ) ) { return this.each( function( i ) { jQuery( this ).toggleClass( value.call( this, i, getClass( this ), stateVal ), stateVal ); } ); } return this.each( function() { var className, i, self, classNames; if ( type === "string" ) { // Toggle individual class names i = 0; self = jQuery( this ); classNames = value.match( rnothtmlwhite ) || []; while ( ( className = classNames[ i++ ] ) ) { // Check each className given, space separated list if ( self.hasClass( className ) ) { self.removeClass( className ); } else { self.addClass( className ); } } // Toggle whole class name } else if ( value === undefined || type === "boolean" ) { className = getClass( this ); if ( className ) { // Store className if set dataPriv.set( this, "__className__", className ); } // If the element has a class name or if we're passed `false`, // then remove the whole classname (if there was one, the above saved it). // Otherwise bring back whatever was previously saved (if anything), // falling back to the empty string if nothing was stored. if ( this.setAttribute ) { this.setAttribute( "class", className || value === false ? "" : dataPriv.get( this, "__className__" ) || "" ); } } } ); }, hasClass: function( selector ) { var className, elem, i = 0; className = " " + selector + " "; while ( ( elem = this[ i++ ] ) ) { if ( elem.nodeType === 1 && ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) { return true; } } return false; } } ); var rreturn = /\r/g; jQuery.fn.extend( { val: function( value ) { var hooks, ret, isFunction, elem = this[ 0 ]; if ( !arguments.length ) { if ( elem ) { hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; if ( hooks && "get" in hooks && ( ret = hooks.get( elem, "value" ) ) !== undefined ) { return ret; } ret = elem.value; // Handle most common string cases if ( typeof ret === "string" ) { return ret.replace( rreturn, "" ); } // Handle cases where value is null/undef or number return ret == null ? "" : ret; } return; } isFunction = jQuery.isFunction( value ); return this.each( function( i ) { var val; if ( this.nodeType !== 1 ) { return; } if ( isFunction ) { val = value.call( this, i, jQuery( this ).val() ); } else { val = value; } // Treat null/undefined as ""; convert numbers to string if ( val == null ) { val = ""; } else if ( typeof val === "number" ) { val += ""; } else if ( jQuery.isArray( val ) ) { val = jQuery.map( val, function( value ) { return value == null ? "" : value + ""; } ); } hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; // If set returns undefined, fall back to normal setting if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) { this.value = val; } } ); } } ); jQuery.extend( { valHooks: { option: { get: function( elem ) { var val = jQuery.find.attr( elem, "value" ); return val != null ? val : // Support: IE <=10 - 11 only // option.text throws exceptions (#14686, #14858) // Strip and collapse whitespace // path_to_url#strip-and-collapse-whitespace stripAndCollapse( jQuery.text( elem ) ); } }, select: { get: function( elem ) { var value, option, i, options = elem.options, index = elem.selectedIndex, one = elem.type === "select-one", values = one ? null : [], max = one ? index + 1 : options.length; if ( index < 0 ) { i = max; } else { i = one ? index : 0; } // Loop through all the selected options for ( ; i < max; i++ ) { option = options[ i ]; // Support: IE <=9 only // IE8-9 doesn't update selected after form reset (#2551) if ( ( option.selected || i === index ) && // Don't return options that are disabled or in a disabled optgroup !option.disabled && ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { // Get the specific value for the option value = jQuery( option ).val(); // We don't need an array for one selects if ( one ) { return value; } // Multi-Selects return an array values.push( value ); } } return values; }, set: function( elem, value ) { var optionSet, option, options = elem.options, values = jQuery.makeArray( value ), i = options.length; while ( i-- ) { option = options[ i ]; /* eslint-disable no-cond-assign */ if ( option.selected = jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1 ) { optionSet = true; } /* eslint-enable no-cond-assign */ } // Force browsers to behave consistently when non-matching value is set if ( !optionSet ) { elem.selectedIndex = -1; } return values; } } } } ); // Radios and checkboxes getter/setter jQuery.each( [ "radio", "checkbox" ], function() { jQuery.valHooks[ this ] = { set: function( elem, value ) { if ( jQuery.isArray( value ) ) { return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 ); } } }; if ( !support.checkOn ) { jQuery.valHooks[ this ].get = function( elem ) { return elem.getAttribute( "value" ) === null ? "on" : elem.value; }; } } ); // Return jQuery for attributes-only inclusion var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/; jQuery.extend( jQuery.event, { trigger: function( event, data, elem, onlyHandlers ) { var i, cur, tmp, bubbleType, ontype, handle, special, eventPath = [ elem || document ], type = hasOwn.call( event, "type" ) ? event.type : event, namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : []; cur = tmp = elem = elem || document; // Don't do events on text and comment nodes if ( elem.nodeType === 3 || elem.nodeType === 8 ) { return; } // focus/blur morphs to focusin/out; ensure we're not firing them right now if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { return; } if ( type.indexOf( "." ) > -1 ) { // Namespaced trigger; create a regexp to match event type in handle() namespaces = type.split( "." ); type = namespaces.shift(); namespaces.sort(); } ontype = type.indexOf( ":" ) < 0 && "on" + type; // Caller can pass in a jQuery.Event object, Object, or just an event type string event = event[ jQuery.expando ] ? event : new jQuery.Event( type, typeof event === "object" && event ); // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) event.isTrigger = onlyHandlers ? 2 : 3; event.namespace = namespaces.join( "." ); event.rnamespace = event.namespace ? new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : null; // Clean up the event in case it is being reused event.result = undefined; if ( !event.target ) { event.target = elem; } // Clone any incoming data and prepend the event, creating the handler arg list data = data == null ? [ event ] : jQuery.makeArray( data, [ event ] ); // Allow special events to draw outside the lines special = jQuery.event.special[ type ] || {}; if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { return; } // Determine event propagation path in advance, per W3C events spec (#9951) // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { bubbleType = special.delegateType || type; if ( !rfocusMorph.test( bubbleType + type ) ) { cur = cur.parentNode; } for ( ; cur; cur = cur.parentNode ) { eventPath.push( cur ); tmp = cur; } // Only add window if we got to document (e.g., not plain obj or detached DOM) if ( tmp === ( elem.ownerDocument || document ) ) { eventPath.push( tmp.defaultView || tmp.parentWindow || window ); } } // Fire handlers on the event path i = 0; while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) { event.type = i > 1 ? bubbleType : special.bindType || type; // jQuery handler handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] && dataPriv.get( cur, "handle" ); if ( handle ) { handle.apply( cur, data ); } // Native handler handle = ontype && cur[ ontype ]; if ( handle && handle.apply && acceptData( cur ) ) { event.result = handle.apply( cur, data ); if ( event.result === false ) { event.preventDefault(); } } } event.type = type; // If nobody prevented the default action, do it now if ( !onlyHandlers && !event.isDefaultPrevented() ) { if ( ( !special._default || special._default.apply( eventPath.pop(), data ) === false ) && acceptData( elem ) ) { // Call a native DOM method on the target with the same name as the event. // Don't do default actions on window, that's where global variables be (#6170) if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { // Don't re-trigger an onFOO event when we call its FOO() method tmp = elem[ ontype ]; if ( tmp ) { elem[ ontype ] = null; } // Prevent re-triggering of the same event, since we already bubbled it above jQuery.event.triggered = type; elem[ type ](); jQuery.event.triggered = undefined; if ( tmp ) { elem[ ontype ] = tmp; } } } } return event.result; }, // Piggyback on a donor event to simulate a different one // Used only for `focus(in | out)` events simulate: function( type, elem, event ) { var e = jQuery.extend( new jQuery.Event(), event, { type: type, isSimulated: true } ); jQuery.event.trigger( e, null, elem ); } } ); jQuery.fn.extend( { trigger: function( type, data ) { return this.each( function() { jQuery.event.trigger( type, data, this ); } ); }, triggerHandler: function( type, data ) { var elem = this[ 0 ]; if ( elem ) { return jQuery.event.trigger( type, data, elem, true ); } } } ); jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " + "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + "change select submit keydown keypress keyup contextmenu" ).split( " " ), function( i, name ) { // Handle event binding jQuery.fn[ name ] = function( data, fn ) { return arguments.length > 0 ? this.on( name, null, data, fn ) : this.trigger( name ); }; } ); jQuery.fn.extend( { hover: function( fnOver, fnOut ) { return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); } } ); support.focusin = "onfocusin" in window; // Support: Firefox <=44 // Firefox doesn't have focus(in | out) events // Related ticket - path_to_url // // Support: Chrome <=48 - 49, Safari <=9.0 - 9.1 // focus(in | out) events fire after focus & blur events, // which is spec violation - path_to_url#events-focusevent-event-order // Related ticket - path_to_url if ( !support.focusin ) { jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) { // Attach a single capturing handler on the document while someone wants focusin/focusout var handler = function( event ) { jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) ); }; jQuery.event.special[ fix ] = { setup: function() { var doc = this.ownerDocument || this, attaches = dataPriv.access( doc, fix ); if ( !attaches ) { doc.addEventListener( orig, handler, true ); } dataPriv.access( doc, fix, ( attaches || 0 ) + 1 ); }, teardown: function() { var doc = this.ownerDocument || this, attaches = dataPriv.access( doc, fix ) - 1; if ( !attaches ) { doc.removeEventListener( orig, handler, true ); dataPriv.remove( doc, fix ); } else { dataPriv.access( doc, fix, attaches ); } } }; } ); } var location = window.location; var nonce = jQuery.now(); var rquery = ( /\?/ ); // Cross-browser xml parsing jQuery.parseXML = function( data ) { var xml; if ( !data || typeof data !== "string" ) { return null; } // Support: IE 9 - 11 only // IE throws on parseFromString with invalid input. try { xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); } catch ( e ) { xml = undefined; } if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { jQuery.error( "Invalid XML: " + data ); } return xml; }; var rbracket = /\[\]$/, rCRLF = /\r?\n/g, rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, rsubmittable = /^(?:input|select|textarea|keygen)/i; function buildParams( prefix, obj, traditional, add ) { var name; if ( jQuery.isArray( obj ) ) { // Serialize array item. jQuery.each( obj, function( i, v ) { if ( traditional || rbracket.test( prefix ) ) { // Treat each array item as a scalar. add( prefix, v ); } else { // Item is non-scalar (array or object), encode its numeric index. buildParams( prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]", v, traditional, add ); } } ); } else if ( !traditional && jQuery.type( obj ) === "object" ) { // Serialize object item. for ( name in obj ) { buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); } } else { // Serialize scalar item. add( prefix, obj ); } } // Serialize an array of form elements or a set of // key/values into a query string jQuery.param = function( a, traditional ) { var prefix, s = [], add = function( key, valueOrFunction ) { // If value is a function, invoke it and use its return value var value = jQuery.isFunction( valueOrFunction ) ? valueOrFunction() : valueOrFunction; s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value == null ? "" : value ); }; // If an array was passed in, assume that it is an array of form elements. if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { // Serialize the form elements jQuery.each( a, function() { add( this.name, this.value ); } ); } else { // If traditional, encode the "old" way (the way 1.3.2 or older // did it), otherwise encode params recursively. for ( prefix in a ) { buildParams( prefix, a[ prefix ], traditional, add ); } } // Return the resulting serialization return s.join( "&" ); }; jQuery.fn.extend( { serialize: function() { return jQuery.param( this.serializeArray() ); }, serializeArray: function() { return this.map( function() { // Can add propHook for "elements" to filter or add form elements var elements = jQuery.prop( this, "elements" ); return elements ? jQuery.makeArray( elements ) : this; } ) .filter( function() { var type = this.type; // Use .is( ":disabled" ) so that fieldset[disabled] works return this.name && !jQuery( this ).is( ":disabled" ) && rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && ( this.checked || !rcheckableType.test( type ) ); } ) .map( function( i, elem ) { var val = jQuery( this ).val(); if ( val == null ) { return null; } if ( jQuery.isArray( val ) ) { return jQuery.map( val, function( val ) { return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ); } return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; } ).get(); } } ); var r20 = /%20/g, rhash = /#.*$/, rantiCache = /([?&])_=[^&]*/, rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, // #7653, #8125, #8152: local protocol detection rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, rnoContent = /^(?:GET|HEAD)$/, rprotocol = /^\/\//, /* Prefilters * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) * 2) These are called: * - BEFORE asking for a transport * - AFTER param serialization (s.data is a string if s.processData is true) * 3) key is the dataType * 4) the catchall symbol "*" can be used * 5) execution will start with transport dataType and THEN continue down to "*" if needed */ prefilters = {}, /* Transports bindings * 1) key is the dataType * 2) the catchall symbol "*" can be used * 3) selection will start with transport dataType and THEN go to "*" if needed */ transports = {}, // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression allTypes = "*/".concat( "*" ), // Anchor tag for parsing the document origin originAnchor = document.createElement( "a" ); originAnchor.href = location.href; // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport function addToPrefiltersOrTransports( structure ) { // dataTypeExpression is optional and defaults to "*" return function( dataTypeExpression, func ) { if ( typeof dataTypeExpression !== "string" ) { func = dataTypeExpression; dataTypeExpression = "*"; } var dataType, i = 0, dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || []; if ( jQuery.isFunction( func ) ) { // For each dataType in the dataTypeExpression while ( ( dataType = dataTypes[ i++ ] ) ) { // Prepend if requested if ( dataType[ 0 ] === "+" ) { dataType = dataType.slice( 1 ) || "*"; ( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func ); // Otherwise append } else { ( structure[ dataType ] = structure[ dataType ] || [] ).push( func ); } } } }; } // Base inspection function for prefilters and transports function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { var inspected = {}, seekingTransport = ( structure === transports ); function inspect( dataType ) { var selected; inspected[ dataType ] = true; jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { options.dataTypes.unshift( dataTypeOrTransport ); inspect( dataTypeOrTransport ); return false; } else if ( seekingTransport ) { return !( selected = dataTypeOrTransport ); } } ); return selected; } return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); } // A special extend for ajax options // that takes "flat" options (not to be deep extended) // Fixes #9887 function ajaxExtend( target, src ) { var key, deep, flatOptions = jQuery.ajaxSettings.flatOptions || {}; for ( key in src ) { if ( src[ key ] !== undefined ) { ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ]; } } if ( deep ) { jQuery.extend( true, target, deep ); } return target; } /* Handles responses to an ajax request: * - finds the right dataType (mediates between content-type and expected dataType) * - returns the corresponding response */ function ajaxHandleResponses( s, jqXHR, responses ) { var ct, type, finalDataType, firstDataType, contents = s.contents, dataTypes = s.dataTypes; // Remove auto dataType and get content-type in the process while ( dataTypes[ 0 ] === "*" ) { dataTypes.shift(); if ( ct === undefined ) { ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" ); } } // Check if we're dealing with a known content-type if ( ct ) { for ( type in contents ) { if ( contents[ type ] && contents[ type ].test( ct ) ) { dataTypes.unshift( type ); break; } } } // Check to see if we have a response for the expected dataType if ( dataTypes[ 0 ] in responses ) { finalDataType = dataTypes[ 0 ]; } else { // Try convertible dataTypes for ( type in responses ) { if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) { finalDataType = type; break; } if ( !firstDataType ) { firstDataType = type; } } // Or just use first one finalDataType = finalDataType || firstDataType; } // If we found a dataType // We add the dataType to the list if needed // and return the corresponding response if ( finalDataType ) { if ( finalDataType !== dataTypes[ 0 ] ) { dataTypes.unshift( finalDataType ); } return responses[ finalDataType ]; } } /* Chain conversions given the request and the original response * Also sets the responseXXX fields on the jqXHR instance */ function ajaxConvert( s, response, jqXHR, isSuccess ) { var conv2, current, conv, tmp, prev, converters = {}, // Work with a copy of dataTypes in case we need to modify it for conversion dataTypes = s.dataTypes.slice(); // Create converters map with lowercased keys if ( dataTypes[ 1 ] ) { for ( conv in s.converters ) { converters[ conv.toLowerCase() ] = s.converters[ conv ]; } } current = dataTypes.shift(); // Convert to each sequential dataType while ( current ) { if ( s.responseFields[ current ] ) { jqXHR[ s.responseFields[ current ] ] = response; } // Apply the dataFilter if provided if ( !prev && isSuccess && s.dataFilter ) { response = s.dataFilter( response, s.dataType ); } prev = current; current = dataTypes.shift(); if ( current ) { // There's only work to do if current dataType is non-auto if ( current === "*" ) { current = prev; // Convert response if prev dataType is non-auto and differs from current } else if ( prev !== "*" && prev !== current ) { // Seek a direct converter conv = converters[ prev + " " + current ] || converters[ "* " + current ]; // If none found, seek a pair if ( !conv ) { for ( conv2 in converters ) { // If conv2 outputs current tmp = conv2.split( " " ); if ( tmp[ 1 ] === current ) { // If prev can be converted to accepted input conv = converters[ prev + " " + tmp[ 0 ] ] || converters[ "* " + tmp[ 0 ] ]; if ( conv ) { // Condense equivalence converters if ( conv === true ) { conv = converters[ conv2 ]; // Otherwise, insert the intermediate dataType } else if ( converters[ conv2 ] !== true ) { current = tmp[ 0 ]; dataTypes.unshift( tmp[ 1 ] ); } break; } } } } // Apply converter (if not an equivalence) if ( conv !== true ) { // Unless errors are allowed to bubble, catch and return them if ( conv && s.throws ) { response = conv( response ); } else { try { response = conv( response ); } catch ( e ) { return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; } } } } } } return { state: "success", data: response }; } jQuery.extend( { // Counter for holding the number of active queries active: 0, // Last-Modified header cache for next request lastModified: {}, etag: {}, ajaxSettings: { url: location.href, type: "GET", isLocal: rlocalProtocol.test( location.protocol ), global: true, processData: true, async: true, contentType: "application/x-www-form-urlencoded; charset=UTF-8", /* timeout: 0, data: null, dataType: null, username: null, password: null, cache: null, throws: false, traditional: false, headers: {}, */ accepts: { "*": allTypes, text: "text/plain", html: "text/html", xml: "application/xml, text/xml", json: "application/json, text/javascript" }, contents: { xml: /\bxml\b/, html: /\bhtml/, json: /\bjson\b/ }, responseFields: { xml: "responseXML", text: "responseText", json: "responseJSON" }, // Data converters // Keys separate source (or catchall "*") and destination types with a single space converters: { // Convert anything to text "* text": String, // Text to html (true = no transformation) "text html": true, // Evaluate text as a json expression "text json": JSON.parse, // Parse text as xml "text xml": jQuery.parseXML }, // For options that shouldn't be deep extended: // you can add your own custom options here if // and when you create one that shouldn't be // deep extended (see ajaxExtend) flatOptions: { url: true, context: true } }, // Creates a full fledged settings object into target // with both ajaxSettings and settings fields. // If target is omitted, writes into ajaxSettings. ajaxSetup: function( target, settings ) { return settings ? // Building a settings object ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : // Extending ajaxSettings ajaxExtend( jQuery.ajaxSettings, target ); }, ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), ajaxTransport: addToPrefiltersOrTransports( transports ), // Main method ajax: function( url, options ) { // If url is an object, simulate pre-1.5 signature if ( typeof url === "object" ) { options = url; url = undefined; } // Force options to be an object options = options || {}; var transport, // URL without anti-cache param cacheURL, // Response headers responseHeadersString, responseHeaders, // timeout handle timeoutTimer, // Url cleanup var urlAnchor, // Request state (becomes false upon send and true upon completion) completed, // To know if global events are to be dispatched fireGlobals, // Loop variable i, // uncached part of the url uncached, // Create the final options object s = jQuery.ajaxSetup( {}, options ), // Callbacks context callbackContext = s.context || s, // Context for global events is callbackContext if it is a DOM node or jQuery collection globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? jQuery( callbackContext ) : jQuery.event, // Deferreds deferred = jQuery.Deferred(), completeDeferred = jQuery.Callbacks( "once memory" ), // Status-dependent callbacks statusCode = s.statusCode || {}, // Headers (they are sent all at once) requestHeaders = {}, requestHeadersNames = {}, // Default abort message strAbort = "canceled", // Fake xhr jqXHR = { readyState: 0, // Builds headers hashtable if needed getResponseHeader: function( key ) { var match; if ( completed ) { if ( !responseHeaders ) { responseHeaders = {}; while ( ( match = rheaders.exec( responseHeadersString ) ) ) { responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ]; } } match = responseHeaders[ key.toLowerCase() ]; } return match == null ? null : match; }, // Raw string getAllResponseHeaders: function() { return completed ? responseHeadersString : null; }, // Caches the header setRequestHeader: function( name, value ) { if ( completed == null ) { name = requestHeadersNames[ name.toLowerCase() ] = requestHeadersNames[ name.toLowerCase() ] || name; requestHeaders[ name ] = value; } return this; }, // Overrides response content-type header overrideMimeType: function( type ) { if ( completed == null ) { s.mimeType = type; } return this; }, // Status-dependent callbacks statusCode: function( map ) { var code; if ( map ) { if ( completed ) { // Execute the appropriate callbacks jqXHR.always( map[ jqXHR.status ] ); } else { // Lazy-add the new callbacks in a way that preserves old ones for ( code in map ) { statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; } } } return this; }, // Cancel the request abort: function( statusText ) { var finalText = statusText || strAbort; if ( transport ) { transport.abort( finalText ); } done( 0, finalText ); return this; } }; // Attach deferreds deferred.promise( jqXHR ); // Add protocol if not provided (prefilters might expect it) // Handle falsy url in the settings object (#10093: consistency with old signature) // We also use the url parameter if available s.url = ( ( url || s.url || location.href ) + "" ) .replace( rprotocol, location.protocol + "//" ); // Alias method option to type as per ticket #12004 s.type = options.method || options.type || s.method || s.type; // Extract dataTypes list s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ]; // A cross-domain request is in order when the origin doesn't match the current origin. if ( s.crossDomain == null ) { urlAnchor = document.createElement( "a" ); // Support: IE <=8 - 11, Edge 12 - 13 // IE throws exception on accessing the href property if url is malformed, // e.g. path_to_url try { urlAnchor.href = s.url; // Support: IE <=8 - 11 only // Anchor's host property isn't correctly set when s.url is relative urlAnchor.href = urlAnchor.href; s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !== urlAnchor.protocol + "//" + urlAnchor.host; } catch ( e ) { // If there is an error parsing the URL, assume it is crossDomain, // it can be rejected by the transport if it is invalid s.crossDomain = true; } } // Convert data if not already a string if ( s.data && s.processData && typeof s.data !== "string" ) { s.data = jQuery.param( s.data, s.traditional ); } // Apply prefilters inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); // If request was aborted inside a prefilter, stop there if ( completed ) { return jqXHR; } // We can fire global events as of now if asked to // Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118) fireGlobals = jQuery.event && s.global; // Watch for a new set of requests if ( fireGlobals && jQuery.active++ === 0 ) { jQuery.event.trigger( "ajaxStart" ); } // Uppercase the type s.type = s.type.toUpperCase(); // Determine if request has content s.hasContent = !rnoContent.test( s.type ); // Save the URL in case we're toying with the If-Modified-Since // and/or If-None-Match header later on // Remove hash to simplify url manipulation cacheURL = s.url.replace( rhash, "" ); // More options handling for requests with no content if ( !s.hasContent ) { // Remember the hash so we can put it back uncached = s.url.slice( cacheURL.length ); // If data is available, append data to url if ( s.data ) { cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data; // #9682: remove data so that it's not used in an eventual retry delete s.data; } // Add or update anti-cache param if needed if ( s.cache === false ) { cacheURL = cacheURL.replace( rantiCache, "$1" ); uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached; } // Put hash and anti-cache on the URL that will be requested (gh-1732) s.url = cacheURL + uncached; // Change '%20' to '+' if this is encoded form body content (gh-2658) } else if ( s.data && s.processData && ( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) { s.data = s.data.replace( r20, "+" ); } // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { if ( jQuery.lastModified[ cacheURL ] ) { jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); } if ( jQuery.etag[ cacheURL ] ) { jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); } } // Set the correct header, if data is being sent if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { jqXHR.setRequestHeader( "Content-Type", s.contentType ); } // Set the Accepts header for the server, depending on the dataType jqXHR.setRequestHeader( "Accept", s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ? s.accepts[ s.dataTypes[ 0 ] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : s.accepts[ "*" ] ); // Check for headers option for ( i in s.headers ) { jqXHR.setRequestHeader( i, s.headers[ i ] ); } // Allow custom headers/mimetypes and early abort if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) { // Abort if not done already and return return jqXHR.abort(); } // Aborting is no longer a cancellation strAbort = "abort"; // Install callbacks on deferreds completeDeferred.add( s.complete ); jqXHR.done( s.success ); jqXHR.fail( s.error ); // Get transport transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); // If no transport, we auto-abort if ( !transport ) { done( -1, "No Transport" ); } else { jqXHR.readyState = 1; // Send global event if ( fireGlobals ) { globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); } // If request was aborted inside ajaxSend, stop there if ( completed ) { return jqXHR; } // Timeout if ( s.async && s.timeout > 0 ) { timeoutTimer = window.setTimeout( function() { jqXHR.abort( "timeout" ); }, s.timeout ); } try { completed = false; transport.send( requestHeaders, done ); } catch ( e ) { // Rethrow post-completion exceptions if ( completed ) { throw e; } // Propagate others as results done( -1, e ); } } // Callback for when everything is done function done( status, nativeStatusText, responses, headers ) { var isSuccess, success, error, response, modified, statusText = nativeStatusText; // Ignore repeat invocations if ( completed ) { return; } completed = true; // Clear timeout if it exists if ( timeoutTimer ) { window.clearTimeout( timeoutTimer ); } // Dereference transport for early garbage collection // (no matter how long the jqXHR object will be used) transport = undefined; // Cache response headers responseHeadersString = headers || ""; // Set readyState jqXHR.readyState = status > 0 ? 4 : 0; // Determine if successful isSuccess = status >= 200 && status < 300 || status === 304; // Get response data if ( responses ) { response = ajaxHandleResponses( s, jqXHR, responses ); } // Convert no matter what (that way responseXXX fields are always set) response = ajaxConvert( s, response, jqXHR, isSuccess ); // If successful, handle type chaining if ( isSuccess ) { // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. if ( s.ifModified ) { modified = jqXHR.getResponseHeader( "Last-Modified" ); if ( modified ) { jQuery.lastModified[ cacheURL ] = modified; } modified = jqXHR.getResponseHeader( "etag" ); if ( modified ) { jQuery.etag[ cacheURL ] = modified; } } // if no content if ( status === 204 || s.type === "HEAD" ) { statusText = "nocontent"; // if not modified } else if ( status === 304 ) { statusText = "notmodified"; // If we have data, let's convert it } else { statusText = response.state; success = response.data; error = response.error; isSuccess = !error; } } else { // Extract error from statusText and normalize for non-aborts error = statusText; if ( status || !statusText ) { statusText = "error"; if ( status < 0 ) { status = 0; } } } // Set data for the fake xhr object jqXHR.status = status; jqXHR.statusText = ( nativeStatusText || statusText ) + ""; // Success/Error if ( isSuccess ) { deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); } else { deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); } // Status-dependent callbacks jqXHR.statusCode( statusCode ); statusCode = undefined; if ( fireGlobals ) { globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", [ jqXHR, s, isSuccess ? success : error ] ); } // Complete completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); if ( fireGlobals ) { globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); // Handle the global AJAX counter if ( !( --jQuery.active ) ) { jQuery.event.trigger( "ajaxStop" ); } } } return jqXHR; }, getJSON: function( url, data, callback ) { return jQuery.get( url, data, callback, "json" ); }, getScript: function( url, callback ) { return jQuery.get( url, undefined, callback, "script" ); } } ); jQuery.each( [ "get", "post" ], function( i, method ) { jQuery[ method ] = function( url, data, callback, type ) { // Shift arguments if data argument was omitted if ( jQuery.isFunction( data ) ) { type = type || callback; callback = data; data = undefined; } // The url can be an options object (which then must have .url) return jQuery.ajax( jQuery.extend( { url: url, type: method, dataType: type, data: data, success: callback }, jQuery.isPlainObject( url ) && url ) ); }; } ); jQuery._evalUrl = function( url ) { return jQuery.ajax( { url: url, // Make this explicit, since user can override this through ajaxSetup (#11264) type: "GET", dataType: "script", cache: true, async: false, global: false, "throws": true } ); }; jQuery.fn.extend( { wrapAll: function( html ) { var wrap; if ( this[ 0 ] ) { if ( jQuery.isFunction( html ) ) { html = html.call( this[ 0 ] ); } // The elements to wrap the target around wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); if ( this[ 0 ].parentNode ) { wrap.insertBefore( this[ 0 ] ); } wrap.map( function() { var elem = this; while ( elem.firstElementChild ) { elem = elem.firstElementChild; } return elem; } ).append( this ); } return this; }, wrapInner: function( html ) { if ( jQuery.isFunction( html ) ) { return this.each( function( i ) { jQuery( this ).wrapInner( html.call( this, i ) ); } ); } return this.each( function() { var self = jQuery( this ), contents = self.contents(); if ( contents.length ) { contents.wrapAll( html ); } else { self.append( html ); } } ); }, wrap: function( html ) { var isFunction = jQuery.isFunction( html ); return this.each( function( i ) { jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html ); } ); }, unwrap: function( selector ) { this.parent( selector ).not( "body" ).each( function() { jQuery( this ).replaceWith( this.childNodes ); } ); return this; } } ); jQuery.expr.pseudos.hidden = function( elem ) { return !jQuery.expr.pseudos.visible( elem ); }; jQuery.expr.pseudos.visible = function( elem ) { return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length ); }; jQuery.ajaxSettings.xhr = function() { try { return new window.XMLHttpRequest(); } catch ( e ) {} }; var xhrSuccessStatus = { // File protocol always yields status code 0, assume 200 0: 200, // Support: IE <=9 only // #1450: sometimes IE returns 1223 when it should be 204 1223: 204 }, xhrSupported = jQuery.ajaxSettings.xhr(); support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); support.ajax = xhrSupported = !!xhrSupported; jQuery.ajaxTransport( function( options ) { var callback, errorCallback; // Cross domain only allowed if supported through XMLHttpRequest if ( support.cors || xhrSupported && !options.crossDomain ) { return { send: function( headers, complete ) { var i, xhr = options.xhr(); xhr.open( options.type, options.url, options.async, options.username, options.password ); // Apply custom fields if provided if ( options.xhrFields ) { for ( i in options.xhrFields ) { xhr[ i ] = options.xhrFields[ i ]; } } // Override mime type if needed if ( options.mimeType && xhr.overrideMimeType ) { xhr.overrideMimeType( options.mimeType ); } // X-Requested-With header // For cross-domain requests, seeing as conditions for a preflight are // akin to a jigsaw puzzle, we simply never set it to be sure. // (it can always be set on a per-request basis or even using ajaxSetup) // For same-domain requests, won't change header if already provided. if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) { headers[ "X-Requested-With" ] = "XMLHttpRequest"; } // Set headers for ( i in headers ) { xhr.setRequestHeader( i, headers[ i ] ); } // Callback callback = function( type ) { return function() { if ( callback ) { callback = errorCallback = xhr.onload = xhr.onerror = xhr.onabort = xhr.onreadystatechange = null; if ( type === "abort" ) { xhr.abort(); } else if ( type === "error" ) { // Support: IE <=9 only // On a manual native abort, IE9 throws // errors on any property access that is not readyState if ( typeof xhr.status !== "number" ) { complete( 0, "error" ); } else { complete( // File: protocol always yields status 0; see #8605, #14207 xhr.status, xhr.statusText ); } } else { complete( xhrSuccessStatus[ xhr.status ] || xhr.status, xhr.statusText, // Support: IE <=9 only // IE9 has no XHR2 but throws on binary (trac-11426) // For XHR2 non-text, let the caller handle it (gh-2498) ( xhr.responseType || "text" ) !== "text" || typeof xhr.responseText !== "string" ? { binary: xhr.response } : { text: xhr.responseText }, xhr.getAllResponseHeaders() ); } } }; }; // Listen to events xhr.onload = callback(); errorCallback = xhr.onerror = callback( "error" ); // Support: IE 9 only // Use onreadystatechange to replace onabort // to handle uncaught aborts if ( xhr.onabort !== undefined ) { xhr.onabort = errorCallback; } else { xhr.onreadystatechange = function() { // Check readyState before timeout as it changes if ( xhr.readyState === 4 ) { // Allow onerror to be called first, // but that will not handle a native abort // Also, save errorCallback to a variable // as xhr.onerror cannot be accessed window.setTimeout( function() { if ( callback ) { errorCallback(); } } ); } }; } // Create the abort callback callback = callback( "abort" ); try { // Do send the request (this may raise an exception) xhr.send( options.hasContent && options.data || null ); } catch ( e ) { // #14683: Only rethrow if this hasn't been notified as an error yet if ( callback ) { throw e; } } }, abort: function() { if ( callback ) { callback(); } } }; } } ); // Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432) jQuery.ajaxPrefilter( function( s ) { if ( s.crossDomain ) { s.contents.script = false; } } ); // Install script dataType jQuery.ajaxSetup( { accepts: { script: "text/javascript, application/javascript, " + "application/ecmascript, application/x-ecmascript" }, contents: { script: /\b(?:java|ecma)script\b/ }, converters: { "text script": function( text ) { jQuery.globalEval( text ); return text; } } } ); // Handle cache's special case and crossDomain jQuery.ajaxPrefilter( "script", function( s ) { if ( s.cache === undefined ) { s.cache = false; } if ( s.crossDomain ) { s.type = "GET"; } } ); // Bind script tag hack transport jQuery.ajaxTransport( "script", function( s ) { // This transport only deals with cross domain requests if ( s.crossDomain ) { var script, callback; return { send: function( _, complete ) { script = jQuery( "<script>" ).prop( { charset: s.scriptCharset, src: s.url } ).on( "load error", callback = function( evt ) { script.remove(); callback = null; if ( evt ) { complete( evt.type === "error" ? 404 : 200, evt.type ); } } ); // Use native DOM manipulation to avoid our domManip AJAX trickery document.head.appendChild( script[ 0 ] ); }, abort: function() { if ( callback ) { callback(); } } }; } } ); var oldCallbacks = [], rjsonp = /(=)\?(?=&|$)|\?\?/; // Default jsonp settings jQuery.ajaxSetup( { jsonp: "callback", jsonpCallback: function() { var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) ); this[ callback ] = true; return callback; } } ); // Detect, normalize options and install callbacks for jsonp requests jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { var callbackName, overwritten, responseContainer, jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? "url" : typeof s.data === "string" && ( s.contentType || "" ) .indexOf( "application/x-www-form-urlencoded" ) === 0 && rjsonp.test( s.data ) && "data" ); // Handle iff the expected data type is "jsonp" or we have a parameter to set if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { // Get callback name, remembering preexisting value associated with it callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback; // Insert callback into url or form data if ( jsonProp ) { s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); } else if ( s.jsonp !== false ) { s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; } // Use data converter to retrieve json after script execution s.converters[ "script json" ] = function() { if ( !responseContainer ) { jQuery.error( callbackName + " was not called" ); } return responseContainer[ 0 ]; }; // Force json dataType s.dataTypes[ 0 ] = "json"; // Install callback overwritten = window[ callbackName ]; window[ callbackName ] = function() { responseContainer = arguments; }; // Clean-up function (fires after converters) jqXHR.always( function() { // If previous value didn't exist - remove it if ( overwritten === undefined ) { jQuery( window ).removeProp( callbackName ); // Otherwise restore preexisting value } else { window[ callbackName ] = overwritten; } // Save back as free if ( s[ callbackName ] ) { // Make sure that re-using the options doesn't screw things around s.jsonpCallback = originalSettings.jsonpCallback; // Save the callback name for future use oldCallbacks.push( callbackName ); } // Call if it was a function and we have a response if ( responseContainer && jQuery.isFunction( overwritten ) ) { overwritten( responseContainer[ 0 ] ); } responseContainer = overwritten = undefined; } ); // Delegate to script return "script"; } } ); // Support: Safari 8 only // In Safari 8 documents created via document.implementation.createHTMLDocument // collapse sibling forms: the second one becomes a child of the first one. // Because of that, this security measure has to be disabled in Safari 8. // path_to_url support.createHTMLDocument = ( function() { var body = document.implementation.createHTMLDocument( "" ).body; body.innerHTML = "<form></form><form></form>"; return body.childNodes.length === 2; } )(); // Argument "data" should be string of html // context (optional): If specified, the fragment will be created in this context, // defaults to document // keepScripts (optional): If true, will include scripts passed in the html string jQuery.parseHTML = function( data, context, keepScripts ) { if ( typeof data !== "string" ) { return []; } if ( typeof context === "boolean" ) { keepScripts = context; context = false; } var base, parsed, scripts; if ( !context ) { // Stop scripts or inline event handlers from being executed immediately // by using document.implementation if ( support.createHTMLDocument ) { context = document.implementation.createHTMLDocument( "" ); // Set the base href for the created document // so any parsed elements with URLs // are based on the document's URL (gh-2965) base = context.createElement( "base" ); base.href = document.location.href; context.head.appendChild( base ); } else { context = document; } } parsed = rsingleTag.exec( data ); scripts = !keepScripts && []; // Single tag if ( parsed ) { return [ context.createElement( parsed[ 1 ] ) ]; } parsed = buildFragment( [ data ], context, scripts ); if ( scripts && scripts.length ) { jQuery( scripts ).remove(); } return jQuery.merge( [], parsed.childNodes ); }; /** * Load a url into a page */ jQuery.fn.load = function( url, params, callback ) { var selector, type, response, self = this, off = url.indexOf( " " ); if ( off > -1 ) { selector = stripAndCollapse( url.slice( off ) ); url = url.slice( 0, off ); } // If it's a function if ( jQuery.isFunction( params ) ) { // We assume that it's the callback callback = params; params = undefined; // Otherwise, build a param string } else if ( params && typeof params === "object" ) { type = "POST"; } // If we have elements to modify, make the request if ( self.length > 0 ) { jQuery.ajax( { url: url, // If "type" variable is undefined, then "GET" method will be used. // Make value of this field explicit since // user can override it through ajaxSetup method type: type || "GET", dataType: "html", data: params } ).done( function( responseText ) { // Save response for use in complete callback response = arguments; self.html( selector ? // If a selector was specified, locate the right elements in a dummy div // Exclude scripts to avoid IE 'Permission Denied' errors jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) : // Otherwise use the full result responseText ); // If the request succeeds, this function gets "data", "status", "jqXHR" // but they are ignored because response was set above. // If it fails, this function gets "jqXHR", "status", "error" } ).always( callback && function( jqXHR, status ) { self.each( function() { callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] ); } ); } ); } return this; }; // Attach a bunch of functions for handling common AJAX events jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ) { jQuery.fn[ type ] = function( fn ) { return this.on( type, fn ); }; } ); jQuery.expr.pseudos.animated = function( elem ) { return jQuery.grep( jQuery.timers, function( fn ) { return elem === fn.elem; } ).length; }; /** * Gets a window from an element */ function getWindow( elem ) { return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView; } jQuery.offset = { setOffset: function( elem, options, i ) { var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, position = jQuery.css( elem, "position" ), curElem = jQuery( elem ), props = {}; // Set position first, in-case top/left are set even on static elem if ( position === "static" ) { elem.style.position = "relative"; } curOffset = curElem.offset(); curCSSTop = jQuery.css( elem, "top" ); curCSSLeft = jQuery.css( elem, "left" ); calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1; // Need to be able to calculate position if either // top or left is auto and position is either absolute or fixed if ( calculatePosition ) { curPosition = curElem.position(); curTop = curPosition.top; curLeft = curPosition.left; } else { curTop = parseFloat( curCSSTop ) || 0; curLeft = parseFloat( curCSSLeft ) || 0; } if ( jQuery.isFunction( options ) ) { // Use jQuery.extend here to allow modification of coordinates argument (gh-1848) options = options.call( elem, i, jQuery.extend( {}, curOffset ) ); } if ( options.top != null ) { props.top = ( options.top - curOffset.top ) + curTop; } if ( options.left != null ) { props.left = ( options.left - curOffset.left ) + curLeft; } if ( "using" in options ) { options.using.call( elem, props ); } else { curElem.css( props ); } } }; jQuery.fn.extend( { offset: function( options ) { // Preserve chaining for setter if ( arguments.length ) { return options === undefined ? this : this.each( function( i ) { jQuery.offset.setOffset( this, options, i ); } ); } var docElem, win, rect, doc, elem = this[ 0 ]; if ( !elem ) { return; } // Support: IE <=11 only // Running getBoundingClientRect on a // disconnected node in IE throws an error if ( !elem.getClientRects().length ) { return { top: 0, left: 0 }; } rect = elem.getBoundingClientRect(); // Make sure element is not hidden (display: none) if ( rect.width || rect.height ) { doc = elem.ownerDocument; win = getWindow( doc ); docElem = doc.documentElement; return { top: rect.top + win.pageYOffset - docElem.clientTop, left: rect.left + win.pageXOffset - docElem.clientLeft }; } // Return zeros for disconnected and hidden elements (gh-2310) return rect; }, position: function() { if ( !this[ 0 ] ) { return; } var offsetParent, offset, elem = this[ 0 ], parentOffset = { top: 0, left: 0 }; // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, // because it is its only offset parent if ( jQuery.css( elem, "position" ) === "fixed" ) { // Assume getBoundingClientRect is there when computed position is fixed offset = elem.getBoundingClientRect(); } else { // Get *real* offsetParent offsetParent = this.offsetParent(); // Get correct offsets offset = this.offset(); if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) { parentOffset = offsetParent.offset(); } // Add offsetParent borders parentOffset = { top: parentOffset.top + jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ), left: parentOffset.left + jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) }; } // Subtract parent offsets and element margins return { top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) }; }, // This method will return documentElement in the following cases: // 1) For the element inside the iframe without offsetParent, this method will return // documentElement of the parent window // 2) For the hidden or detached element // 3) For body or html element, i.e. in case of the html node - it will return itself // // but those exceptions were never presented as a real life use-cases // and might be considered as more preferable results. // // This logic, however, is not guaranteed and can change at any point in the future offsetParent: function() { return this.map( function() { var offsetParent = this.offsetParent; while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) { offsetParent = offsetParent.offsetParent; } return offsetParent || documentElement; } ); } } ); // Create scrollLeft and scrollTop methods jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) { var top = "pageYOffset" === prop; jQuery.fn[ method ] = function( val ) { return access( this, function( elem, method, val ) { var win = getWindow( elem ); if ( val === undefined ) { return win ? win[ prop ] : elem[ method ]; } if ( win ) { win.scrollTo( !top ? val : win.pageXOffset, top ? val : win.pageYOffset ); } else { elem[ method ] = val; } }, method, val, arguments.length ); }; } ); // Support: Safari <=7 - 9.1, Chrome <=37 - 49 // Add the top/left cssHooks using jQuery.fn.position // Webkit bug: path_to_url // Blink bug: path_to_url // getComputedStyle returns percent when specified for top/left/bottom/right; // rather than make the css module depend on the offset module, just check for it here jQuery.each( [ "top", "left" ], function( i, prop ) { jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition, function( elem, computed ) { if ( computed ) { computed = curCSS( elem, prop ); // If curCSS returns percentage, fallback to offset return rnumnonpx.test( computed ) ? jQuery( elem ).position()[ prop ] + "px" : computed; } } ); } ); // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { // Margin is only for outerHeight, outerWidth jQuery.fn[ funcName ] = function( margin, value ) { var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); return access( this, function( elem, type, value ) { var doc; if ( jQuery.isWindow( elem ) ) { // $( window ).outerWidth/Height return w/h including scrollbars (gh-1729) return funcName.indexOf( "outer" ) === 0 ? elem[ "inner" + name ] : elem.document.documentElement[ "client" + name ]; } // Get document width or height if ( elem.nodeType === 9 ) { doc = elem.documentElement; // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], // whichever is greatest return Math.max( elem.body[ "scroll" + name ], doc[ "scroll" + name ], elem.body[ "offset" + name ], doc[ "offset" + name ], doc[ "client" + name ] ); } return value === undefined ? // Get width or height on the element, requesting but not forcing parseFloat jQuery.css( elem, type, extra ) : // Set width or height on the element jQuery.style( elem, type, value, extra ); }, type, chainable ? margin : undefined, chainable ); }; } ); } ); jQuery.fn.extend( { bind: function( types, data, fn ) { return this.on( types, null, data, fn ); }, unbind: function( types, fn ) { return this.off( types, null, fn ); }, delegate: function( selector, types, data, fn ) { return this.on( types, selector, data, fn ); }, undelegate: function( selector, types, fn ) { // ( namespace ) or ( selector, types [, fn] ) return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); } } ); jQuery.parseJSON = JSON.parse; // Register as a named AMD module, since jQuery can be concatenated with other // files that may use define, but not via a proper concatenation script that // understands anonymous AMD modules. A named AMD is safest and most robust // way to register. Lowercase jquery is used because AMD module names are // derived from file names, and jQuery is normally delivered in a lowercase // file name. Do this after creating the global so that if an AMD module wants // to call noConflict to hide this version of jQuery, it will work. // Note that for maximum portability, libraries that are not jQuery should // declare themselves as anonymous modules, and avoid setting a global if an // AMD loader is present. jQuery is a special case. For more information, see // path_to_url#wiki-anon if ( typeof define === "function" && define.amd ) { define( "jquery", [], function() { return jQuery; } ); } var // Map over jQuery in case of overwrite _jQuery = window.jQuery, // Map over the $ in case of overwrite _$ = window.$; jQuery.noConflict = function( deep ) { if ( window.$ === jQuery ) { window.$ = _$; } if ( deep && window.jQuery === jQuery ) { window.jQuery = _jQuery; } return jQuery; }; // Expose jQuery and $ identifiers, even in AMD // (#7102#comment:10, path_to_url // and CommonJS for browser emulators (#13566) if ( !noGlobal ) { window.jQuery = window.$ = jQuery; } return jQuery; } ); ```
The Science Diplomats Club (SDC) is a social club that was founded in Washington, D.C. in 1965. The membership includes Science and Technology counselors, attachés, or representatives of research institutions from more than 40 Washington-based embassies, about half of them from Europe. In addition, a few former science counselors, as well as some U.S. personalities, have been granted the status of SDC honorary members. Mission The principal purpose of SDC is: "to provide an informal meeting place and networking channel for the Science Diplomats. Newcomers quickly find a group of colleagues with whom they can meet and 'learn the ropes' of the Washington science scene. Second, SDC offers a meeting forum where, on almost monthly basis, we get together to receive briefings on central science and technology issues of the day. Such encounters are useful in that they provide highly relevant information and insights on central matters, through discussion sessions with people from one of the many think tanks in Washington, with representatives from NIH, NSF, AAAS, the National Academies, NOAA or NIST. Also, dialogues with representatives from universities or various federal departments on pertinent issues of clear international relevance and consequence. ... SDC is thus a useful and dynamic two-way information and communications forum, benefiting the members and those science, technology and higher education stakeholders in Greater Washington wishing to stay in touch with the international science community. We are open to new suggestions and ideas on how to become an even more attractive and internationally oriented knowledge-promoting networking instrument". History The Science Diplomats Club was established during a lunch held by the Embassy of Denmark at the Cosmos Club in January 1965. The club was the initial site for luncheons; when the Embassy of the Netherlands took over the secretariat, luncheons were also held at their embassy and other local restaurants. Starting in 1988, various science counselors started hosting luncheons either at their embassies, Meridian House, scientific/technical organizations, and, later on again, at the Cosmos Club. During these luncheons, guest speakers from the government, associations, universities, and industries informed SDC members about developments in science and technology policy and on progress in R&D. In recent years, the club has also made visits to S&T organizations inside and outside the Washington area. In 2007 the Embassy of France began organizing "Science Breakfasts", which take place eight to ten times a year. Apart from attending monthly luncheons and site visits, members are also invited to attend meetings at scientific and technical institutions, such as the National Academy of Sciences, National Institutes of Standards and Technology, etc. The following persons have been chair of the SDC: Activities As a social club, the SDC organizes social activities (e.g. summer and winter parties). However, it also organizes meetings with American personalities in the domain of science and diplomacy, encounters with US science advisers, international bodies, and think tanks. Nowadays, such meetings are organized on a more regular basis (the Science Breakfasts). The SDC also organizes external activities to visit science centers or technology parks, jointly with agencies or diplomacy related associations, and participates in co-sponsoring events related to science diplomacy. Science Breakfasts Since January 2007, together with the SDC, the Office of Science and Technology of the Embassy of France organizes monthly "Science Breakfasts", inviting a prominent member of the American science and technology community to speak to an audience of counselors from embassies in Washington. Since the first session, in January 2007, 30 to 40 guests from 15 to 20 different countries, have had an occasion to strengthen ties with American leaders in science and technology and to ask them questions and spur dialog within a favorable context. See also List of diplomatic missions in Washington, D.C. References External links Science Breakfasts Scientific organizations based in the United States Organizations established in 1965
A Birthday cake is a tradition in western culture. It can also refer to: "Birthday Cake" (song), by Rihanna "Birthday Cake", a song by Parachute Express "Birthday Cake" (Ivri Lider song) Birthday cake interview, an Australian political interview The Birthday Cake, a crime thriller film
```rust /* * * This software may be used and distributed according to the terms of the */ use std::borrow::Cow; use anyhow::Context; use anyhow::Result; pub fn hostname() -> String { if std::env::var_os("TESTTMP").is_some() || cfg!(test) { // Doesn't seem like we want to use the real hostname in tests. // Also, this may fix some debugruntest issues on mac due to whoami issues. "test-hostname".to_owned() } else { std::env::var_os(if cfg!(windows) { "COMPUTERNAME" } else if cfg!(macos) { "HOST" } else { "HOSTNAME" }) .map_or(None, |h| h.to_str().map(|s| s.to_string())) .unwrap_or("".to_owned()) } } pub fn username() -> Result<String> { if std::env::var_os("TESTTMP").is_some() || cfg!(test) { Ok("test".to_owned()) } else { std::env::var_os(if cfg!(windows) { "USERNAME" } else { "USER" }) .context("to get username") .map(|k| k.to_string_lossy().to_string()) } } pub fn shell_escape(args: &[String]) -> String { args.iter() .map(|a| shell_escape::escape(Cow::Borrowed(a.as_str()))) .collect::<Vec<_>>() .join(" ") } ```
```c++ // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*- /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include <zxing/ZXing.h> #include <zxing/oned/ITFReader.h> #include <zxing/oned/OneDResultPoint.h> #include <zxing/common/Array.h> #include <zxing/ReaderException.h> #include <zxing/FormatException.h> #include <zxing/NotFoundException.h> #include <math.h> using std::vector; using zxing::Ref; using zxing::ArrayRef; using zxing::Array; using zxing::Result; using zxing::FormatException; using zxing::NotFoundException; using zxing::oned::ITFReader; // VC++ using zxing::BitArray; const float ITFReader::MAX_AVG_VARIANCE = 0.38f; const float ITFReader::MAX_INDIVIDUAL_VARIANCE = 0.78f; #define VECTOR_INIT(v) v, v + sizeof(v)/sizeof(v[0]) namespace { const int W = 3; // Pixel width of a wide line const int N = 1; // Pixed width of a narrow line const int DEFAULT_ALLOWED_LENGTHS_[] = { 48, 44, 24, 20, 18, 16, 14, 12, 10, 8, 6 }; const ArrayRef<int> DEFAULT_ALLOWED_LENGTHS (new Array<int>(VECTOR_INIT(DEFAULT_ALLOWED_LENGTHS_))); /** * Start/end guard pattern. * * Note: The end pattern is reversed because the row is reversed before * searching for the END_PATTERN */ const int START_PATTERN_[] = {N, N, N, N}; const vector<int> START_PATTERN (VECTOR_INIT(START_PATTERN_)); const int END_PATTERN_REVERSED_[] = {N, N, W}; const vector<int> END_PATTERN_REVERSED (VECTOR_INIT(END_PATTERN_REVERSED_)); /** * Patterns of Wide / Narrow lines to indicate each digit */ const int PATTERNS[][5] = { {N, N, W, W, N}, // 0 {W, N, N, N, W}, // 1 {N, W, N, N, W}, // 2 {W, W, N, N, N}, // 3 {N, N, W, N, W}, // 4 {W, N, W, N, N}, // 5 {N, W, W, N, N}, // 6 {N, N, N, W, W}, // 7 {W, N, N, W, N}, // 8 {N, W, N, W, N} // 9 }; } ITFReader::ITFReader() : narrowLineWidth(-1) { } Ref<Result> ITFReader::decodeRow(int rowNumber, Ref<BitArray> row) { // Find out where the Middle section (payload) starts & ends Range startRange = decodeStart(row); Range endRange = decodeEnd(row); std::string result; decodeMiddle(row, startRange[1], endRange[0], result); Ref<String> resultString(new String(result)); ArrayRef<int> allowedLengths; // Java hints stuff missing if (!allowedLengths) { allowedLengths = DEFAULT_ALLOWED_LENGTHS; } // To avoid false positives with 2D barcodes (and other patterns), make // an assumption that the decoded string must be 6, 10 or 14 digits. int length = resultString->size(); bool lengthOK = false; for (int i = 0, e = allowedLengths->size(); i < e; i++) { if (length == allowedLengths[i]) { lengthOK = true; break; } } if (!lengthOK) { throw FormatException(); } ArrayRef< Ref<ResultPoint> > resultPoints(2); resultPoints[0] = Ref<OneDResultPoint>(new OneDResultPoint(float(startRange[1]), float(rowNumber))); resultPoints[1] = Ref<OneDResultPoint>(new OneDResultPoint(float(endRange[0]), float(rowNumber))); return Ref<Result>(new Result(resultString, ArrayRef<char>(), resultPoints, BarcodeFormat::ITF)); } /** * @param row row of black/white values to search * @param payloadStart offset of start pattern * @param resultString {@link StringBuffer} to append decoded chars to * @throws ReaderException if decoding could not complete successfully */ void ITFReader::decodeMiddle(Ref<BitArray> row, int payloadStart, int payloadEnd, std::string& resultString) { // Digits are interleaved in pairs - 5 black lines for one digit, and the // 5 // interleaved white lines for the second digit. // Therefore, need to scan 10 lines and then // split these into two arrays vector<int> counterDigitPair(10, 0); vector<int> counterBlack(5, 0); vector<int> counterWhite(5, 0); while (payloadStart < payloadEnd) { // Get 10 runs of black/white. recordPattern(row, payloadStart, counterDigitPair); // Split them into each array for (int k = 0; k < 5; k++) { int twoK = 2 * k; counterBlack[k] = counterDigitPair[twoK]; counterWhite[k] = counterDigitPair[twoK + 1]; } int bestMatch = decodeDigit(counterBlack); resultString.append(1, (char) ('0' + bestMatch)); bestMatch = decodeDigit(counterWhite); resultString.append(1, (char) ('0' + bestMatch)); for (int i = 0, e = counterDigitPair.size(); i < e; i++) { payloadStart += counterDigitPair[i]; } } } /** * Identify where the start of the middle / payload section starts. * * @param row row of black/white values to search * @return Array, containing index of start of 'start block' and end of * 'start block' * @throws ReaderException */ ITFReader::Range ITFReader::decodeStart(Ref<BitArray> row) { int endStart = skipWhiteSpace(row); Range startPattern = findGuardPattern(row, endStart, START_PATTERN); // Determine the width of a narrow line in pixels. We can do this by // getting the width of the start pattern and dividing by 4 because its // made up of 4 narrow lines. narrowLineWidth = (startPattern[1] - startPattern[0]) / 4; validateQuietZone(row, startPattern[0]); return startPattern; } /** * Identify where the end of the middle / payload section ends. * * @param row row of black/white values to search * @return Array, containing index of start of 'end block' and end of 'end * block' * @throws ReaderException */ ITFReader::Range ITFReader::decodeEnd(Ref<BitArray> row) { // For convenience, reverse the row and then // search from 'the start' for the end block BitArray::Reverse r (row); int endStart = skipWhiteSpace(row); Range endPattern = findGuardPattern(row, endStart, END_PATTERN_REVERSED); // The start & end patterns must be pre/post fixed by a quiet zone. This // zone must be at least 10 times the width of a narrow line. // ref: path_to_url validateQuietZone(row, endPattern[0]); // Now recalculate the indices of where the 'endblock' starts & stops to // accommodate // the reversed nature of the search int temp = endPattern[0]; endPattern[0] = row->getSize() - endPattern[1]; endPattern[1] = row->getSize() - temp; return endPattern; } /** * The start & end patterns must be pre/post fixed by a quiet zone. This * zone must be at least 10 times the width of a narrow line. Scan back until * we either get to the start of the barcode or match the necessary number of * quiet zone pixels. * * Note: Its assumed the row is reversed when using this method to find * quiet zone after the end pattern. * * ref: path_to_url * * @param row bit array representing the scanned barcode. * @param startPattern index into row of the start or end pattern. * @throws ReaderException if the quiet zone cannot be found, a ReaderException is thrown. */ void ITFReader::validateQuietZone(Ref<BitArray> row, int startPattern) { int quietCount = this->narrowLineWidth * 10; // expect to find this many pixels of quiet zone for (int i = startPattern - 1; quietCount > 0 && i >= 0; i--) { if (row->get(i)) { break; } quietCount--; } if (quietCount != 0) { // Unable to find the necessary number of quiet zone pixels. throw NotFoundException(); } } /** * Skip all whitespace until we get to the first black line. * * @param row row of black/white values to search * @return index of the first black line. * @throws ReaderException Throws exception if no black lines are found in the row */ int ITFReader::skipWhiteSpace(Ref<BitArray> row) { int width = row->getSize(); int endStart = row->getNextSet(0); if (endStart == width) { throw NotFoundException(); } return endStart; } /** * @param row row of black/white values to search * @param rowOffset position to start search * @param pattern pattern of counts of number of black and white pixels that are * being searched for as a pattern * @return start/end horizontal offset of guard pattern, as an array of two * ints * @throws ReaderException if pattern is not found */ ITFReader::Range ITFReader::findGuardPattern(Ref<BitArray> row, int rowOffset, vector<int> const& pattern) { // TODO: This is very similar to implementation in UPCEANReader. Consider if they can be // merged to a single method. int patternLength = pattern.size(); vector<int> counters(patternLength); int width = row->getSize(); bool isWhite = false; int counterPosition = 0; int patternStart = rowOffset; for (int x = rowOffset; x < width; x++) { if (row->get(x) ^ isWhite) { counters[counterPosition]++; } else { if (counterPosition == patternLength - 1) { if (patternMatchVariance(counters, &pattern[0], MAX_INDIVIDUAL_VARIANCE) < MAX_AVG_VARIANCE) { return Range(patternStart, x); } patternStart += counters[0] + counters[1]; for (int y = 2; y < patternLength; y++) { counters[y - 2] = counters[y]; } counters[patternLength - 2] = 0; counters[patternLength - 1] = 0; counterPosition--; } else { counterPosition++; } counters[counterPosition] = 1; isWhite = !isWhite; } } throw NotFoundException(); } /** * Attempts to decode a sequence of ITF black/white lines into single * digit. * * @param counters the counts of runs of observed black/white/black/... values * @return The decoded digit * @throws ReaderException if digit cannot be decoded */ int ITFReader::decodeDigit(vector<int>& counters){ float bestVariance = MAX_AVG_VARIANCE; // worst variance we'll accept int bestMatch = -1; int max = sizeof(PATTERNS)/sizeof(PATTERNS[0]); for (int i = 0; i < max; i++) { int const* pattern = PATTERNS[i]; float variance = patternMatchVariance(counters, pattern, MAX_INDIVIDUAL_VARIANCE); if (variance < bestVariance) { bestVariance = variance; bestMatch = i; } } if (bestMatch >= 0) { return bestMatch; } else { throw NotFoundException(); } } ITFReader::~ITFReader(){} ```
A bridge plate, or bridgeplate, is a mechanical, movable form of wheelchair ramp that is used on some low-floor light rail vehicles (LRVs) to provide for wheelchair access. The bridge plate extends from the vehicle to the platform, which must be raised to close to the level of the floor of the vehicle so that the wheelchair need not travel over an excessively steep ramp (in the United States, the Americans with Disabilities Act specifies that the slope must be no more than 1 inch of rise for every 12 inches of length). Some low-floor buses also use bridge plates (in this case, extending to the curb) to provide for wheelchair access, but many low-floor buses instead use a ramp that normally serves as part of the floor but can be flipped out through the door (using a hinge at the door) onto the curb or street; in this case the ramp is long enough that it can serve as a true wheelchair ramp rather than a bridge without being excessively steep. Bridge plates can be manually deployed (by the vehicle operator or other crew person) or powered, retractable ramps. The first passenger rail cars in North America to be equipped with retractable bridge plates were TriMet's (Portland, Oregon) Siemens SD660 LRVs, the first of which were completed in 1996. Earlier, in 1987, the newly opened Sacramento RT Light Rail system used non-powered, station-platform-mounted bridge plates to bridge the gap between a high-platform section at each station and the floor of an LRV. Manually operated bridge plates On some railway stations in France and the United Kingdom, it may not be possible provide permanent level access from the platform to the train if different types of trains pass through or serve the station. To overcome this issue, a station may have one or more staff-operated boarding ramp on the platforms, to be deployed when a wheelchair user boards the train. Bridge plates across tracks Much larger bridge plates, spanning across tracks, are used for boarding when the track next to the platform is closed, especially for maintenance. These plates can be dangerous, as the section of track must be taken out of service and trains rerouted to avoid colliding with the plates. See also Platform gap filler Wheelchair lift Wheelchair ramp References Mobility devices Public transport Passenger rail transport
East–West Bowl may refer to: East/West Bowl (Key & Peele), a recurring sketch in the comedy show Key & Peele East–West Shrine Game, charity college all-star game since 1925 San Diego East-West Christmas Classic, 1921 and 1922 college football bowl games Tournament East-West football game, original name for the Rose Bowl Game U Sports East–West Bowl, an annual Canadian Interuniversity Sport football game since 2003
```c++ // // // path_to_url // // Unless required by applicable law or agreed to in writing, software // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #include "paddle/phi/kernels/angle_kernel.h" #include "paddle/phi/kernels/impl/angle_kernel_impl.h" #include "paddle/phi/backends/cpu/cpu_context.h" #include "paddle/phi/core/kernel_registry.h" PD_REGISTER_KERNEL(angle, CPU, ALL_LAYOUT, phi::AngleKernel, float, double, phi::dtype::complex<float>, phi::dtype::complex<double>) { kernel->OutputAt(0).SetDataType(phi::DataType::UNDEFINED); } ```
```css CSS Specificity Change the style of borders using `border-style` Use `border-radius` to style rounded corners of an element Styling elements using `::before` and `::after` Combining selectors ```
The Monitor House is a historic house in St. Paris, Ohio, United States. Located along West Main Street, it is a square brick structure resting on a foundation of stone and covered with an asphalt roof. Although the house is primarily one story tall, it is built around a -story square clerestory. The house was constructed circa 1860, although its precise date of erection — as well as the names of its first owner and its designer — is unknown. Its five-bay, -long exterior is decorated with cornices around the window lintels. Inside, the rooms open onto a central hallway that concludes with a stairway to the second floor of the central part of the house. In 1974, the Monitor House was listed on the National Register of Historic Places because of its unusual architecture. Only two or three monitor houses, featuring an elevated center, are known to exist in Ohio, and the one in St. Paris is architecturally the most well-preserved; consequently, it is considered historically significant statewide. In contrast, a similar monitor house in Chillicothe, known as "Tanglewood," is only considered locally significant. The house in St. Paris was the first of over thirty places in Champaign County to be listed on the National Register; it is one of two in the village with this distinction, along with the Kiser Mansion on East Main Street. See also Josiah Quincy House, a monitor house in Massachusetts References Houses completed in 1860 Houses in Champaign County, Ohio Houses on the National Register of Historic Places in Ohio National Register of Historic Places in Champaign County, Ohio U.S. Route 36 1860 establishments in Ohio
```c * * your_sha256_hash----------------------- * The following license statement only applies to this file (string_list.c). * your_sha256_hash----------------------- * * Permission is hereby granted, free of charge, * to any person obtaining a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, * and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include <stdio.h> #include <stdint.h> #include <string.h> #include <lists/string_list.h> #include <retro_assert.h> #include <retro_miscellaneous.h> #include <compat/strl.h> #include <compat/posix_string.h> /** * string_list_free * @list : pointer to string list object * * Frees a string list. */ void string_list_free(struct string_list *list) { size_t i; if (!list) return; for (i = 0; i < list->size; i++) free(list->elems[i].data); free(list->elems); free(list); } /** * string_list_capacity: * @list : pointer to string list * @cap : new capacity for string list. * * Change maximum capacity of string list's size. * * Returns: true (1) if successful, otherwise false (0). **/ static bool string_list_capacity(struct string_list *list, size_t cap) { struct string_list_elem *new_data = NULL; retro_assert(cap > list->size); new_data = (struct string_list_elem*) realloc(list->elems, cap * sizeof(*new_data)); if (!new_data) return false; if (cap > list->cap) memset(&new_data[list->cap], 0, sizeof(*new_data) * (cap - list->cap)); list->elems = new_data; list->cap = cap; return true; } /** * string_list_new: * * Creates a new string list. Has to be freed manually. * * Returns: new string list if successful, otherwise NULL. */ struct string_list *string_list_new(void) { struct string_list *list = (struct string_list*) calloc(1, sizeof(*list)); if (!list) return NULL; if (!string_list_capacity(list, 32)) { string_list_free(list); return NULL; } return list; } /** * string_list_append: * @list : pointer to string list * @elem : element to add to the string list * @attr : attributes of new element. * * Appends a new element to the string list. * * Returns: true (1) if successful, otherwise false (0). **/ bool string_list_append(struct string_list *list, const char *elem, union string_list_elem_attr attr) { char *data_dup = NULL; if (list->size >= list->cap && !string_list_capacity(list, list->cap * 2)) return false; data_dup = strdup(elem); if (!data_dup) return false; list->elems[list->size].data = data_dup; list->elems[list->size].attr = attr; list->size++; return true; } /** * string_list_set: * @list : pointer to string list * @idx : index of element in string list * @str : value for the element. * * Set value of element inside string list. **/ void string_list_set(struct string_list *list, unsigned idx, const char *str) { free(list->elems[idx].data); retro_assert(list->elems[idx].data = strdup(str)); } /** * string_list_join_concat: * @buffer : buffer that @list will be joined to. * @size : length of @buffer. * @list : pointer to string list. * @delim : delimiter character for @list. * * A string list will be joined/concatenated as a * string to @buffer, delimited by @delim. */ void string_list_join_concat(char *buffer, size_t size, const struct string_list *list, const char *delim) { size_t i, len = strlen(buffer); retro_assert(len < size); buffer += len; size -= len; for (i = 0; i < list->size; i++) { strlcat(buffer, list->elems[i].data, size); if ((i + 1) < list->size) strlcat(buffer, delim, size); } } /** * string_split: * @str : string to turn into a string list * @delim : delimiter character to use for splitting the string. * * Creates a new string list based on string @str, delimited by @delim. * * Returns: new string list if successful, otherwise NULL. */ struct string_list *string_split(const char *str, const char *delim) { char *save = NULL; char *copy = NULL; const char *tmp = NULL; struct string_list *list = string_list_new(); if (!list) goto error; copy = strdup(str); if (!copy) goto error; tmp = strtok_r(copy, delim, &save); while (tmp) { union string_list_elem_attr attr; memset(&attr, 0, sizeof(attr)); if (!string_list_append(list, tmp, attr)) goto error; tmp = strtok_r(NULL, delim, &save); } free(copy); return list; error: string_list_free(list); free(copy); return NULL; } /** * string_list_find_elem: * @list : pointer to string list * @elem : element to find inside the string list. * * Searches for an element (@elem) inside the string list. * * Returns: true (1) if element could be found, otherwise false (0). */ int string_list_find_elem(const struct string_list *list, const char *elem) { size_t i; if (!list) return false; for (i = 0; i < list->size; i++) { if (strcasecmp(list->elems[i].data, elem) == 0) return i+1; } return false; } /** * string_list_find_elem_prefix: * @list : pointer to string list * @prefix : prefix to append to @elem * @elem : element to find inside the string list. * * Searches for an element (@elem) inside the string list. Will * also search for the same element prefixed by @prefix. * * Returns: true (1) if element could be found, otherwise false (0). */ bool string_list_find_elem_prefix(const struct string_list *list, const char *prefix, const char *elem) { size_t i; char prefixed[PATH_MAX_LENGTH] = {0}; if (!list) return false; strlcpy(prefixed, prefix, sizeof(prefixed)); strlcat(prefixed, elem, sizeof(prefixed)); for (i = 0; i < list->size; i++) { if (strcasecmp(list->elems[i].data, elem) == 0 || strcasecmp(list->elems[i].data, prefixed) == 0) return true; } return false; } ```
```objective-c /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ /* * The following is auto-generated. Do not manually edit. See scripts/loops.js. */ #ifndef STDLIB_STRIDED_BASE_BINARY_UC_Z_AS_ZZ_Z_H #define STDLIB_STRIDED_BASE_BINARY_UC_Z_AS_ZZ_Z_H #include <stdint.h> /* * If C++, prevent name mangling so that the compiler emits a binary file having undecorated names, thus mirroring the behavior of a C compiler. */ #ifdef __cplusplus extern "C" { #endif /** * Applies a binary callback to strided input array elements and assigns results to elements in a strided output array. */ void stdlib_strided_uc_z_as_zz_z( uint8_t *arrays[], const int64_t *shape, const int64_t *strides, void *fcn ); #ifdef __cplusplus } #endif #endif // !STDLIB_STRIDED_BASE_BINARY_UC_Z_AS_ZZ_Z_H ```
Fábio Alves Macedo (born 16 March 1985 in Ariquemes) known as Fabinho, is a Brazilian footballer. He has played in numerous State football leagues in Brazil during his playing career in his native country and has played for the Brazil U20 team. As a left back, he is known for his attacking and crossing abilities. Youth career Fabinho began his youth career at Guairá Futebol Clube at age 12. He then played for several São Paulo-based teams in 1999 (Botafogo Futebol Clube), 2000 (Gremio Esportivo Saocarlense) and 2001 (Bandeirante). In 2002, he joined Portuguesa Londrinense. In 2003, he played for Flamengo youth team that won the Taça Belo Horizonte de Juniores and played with Londrina in the same tournament in 2004 that led to his national U20 team selection. Alves later joined Newell's Old Boys in 2004. He joined Coritiba in 2005 to start his pro career. Club career Coritiba Fabinho joined the team and played on its youth team before making his Série A debut on 8 May 2005 in a 1–0 win against Palmeiras as well as starting in a 4 October 2005 1–0 loss against Goiás. In 2006, he played one game for the first team in the Campeonato Paranaense, Série B and the Copa do Brasil as well as 8 games with Coritiba B, the reserve team, in the Copa Parana. J Malucelli In 2007, Fabinho joined J. Malucelli and started every game in which he played in the Campeonato Paranaense, the Copa Parana and the newly created Recopa Sul-Brasileira. In the Campeonato Paranaense, he played 11 games. In the Copa Parana, he played 18 games. He scored a goal in the 25 July 2006 game against Cascavel. He played both legs for J. Malucelli in its Copa Parana winning championship series against Londrina. As a result of winning the Copa Parana, J. Malucelli was one of four state tournament winners to play in the Recopa Sul-Brasileira year-end tournament. Fabinho played in the semi-final 2–1 loss to Caxias. Ponte Preta Fabinho joined the team in 2008 and played just 2 games in that year's Campeonato Paulista. Despite his lack of playing time, the team resigned him on 17 December 2008 to continue with the team in 2009. He played 6 games for the team in the 2009 Campeonato Paulista and 1 game in the Copa do Brasil. On 27 April 2009, the team announced that Fabinho was not retained for its Série B campaign that year. Criciuma On 2 September 2009, Fabinho joined Criciúma for the 2009 Copa Santa Catarina. He played 5 games in the tournament. Paysandu In early 2010, Fabinho joined Paysandu and participated in the team's Campeonato Paraense. He played in 5 games early in the campaign before leaving to join Mixto. Mixto On 4 March 2010, Fabinho signed with Mixto. He signed during the team's participation in the Campeonato Mato-Grossense and debuted on 21 March 2013 in a 2–2 tie with União de Rondonópolis. Later that year, Fabinho also played with the team during its Série D, campaign. He started 8 games that season. On 14 October 2010, Fabinho left Mixto. Volta Redonda On 25 November 2010, Fabinho joined Volta Redonda. In the 2011 Campeonato Carioca, he started 14 games. Fabinho then played with Volta Redonda in Série D. He only played 3 games due to injury and then Melbourne Victory showed interest in signing him. On 25 August 2011, it was announced that Fabinho was leaving the team to join Melbourne Victory. Melbourne Victory On 15 September 2011, it was announced that Fabinho had signed a one-year contract with A-League club Melbourne Victory, after an impressive trial performance in a pre-season friendly against 2010–11 A-League champions Brisbane Roar. It was his first move outside of South America. At the end of the 2011–12 A-League season, Fabio and the club parted on bitter terms as it was widely reported that he had agreed to a new contract extension with the club, only for the contract to be withdrawn as the club sought a new management structure and hired Ange Postecoglou. He has expressed his displeasure regarding this incident to fans and media. Fabio scored 1 goal in his 23 games with Melbourne in a 2–2 tie against Sydney FC. Sydney FC On 22 May 2012, Melbourne's biggest rivals Sydney FC announced that Fabinho would be invited to train with the club on trial for a 4-day period. After impressing then Sydney manager Ian Crook just two days into his trial, the club announced that they had signed Fabio to a two-year contract to fill the vacant left back spot left by Scott Jamieson who had moved to Perth Glory. He became only the second player to move to Sydney FC from rivals Melbourne Victory after Sebastian Ryall's move in 2009. After 18 appearances for Sydney FC, it was announced that Fabio and the club had decided to mutually terminate his contract on 22 April 2013. Philadelphia Union After a successful trial, Fabinho signed with the Philadelphia Union of Major League Soccer on 28 June 2013. He made his debut as a left midfielder substitute on 12 July 2013 against Chivas USA and assisted on the final goal scored by Conor Casey in a 3-1 Union victory. Fabio got his first start in a 29 July 2013 2–0 loss in a friendly against Stoke City Football Club. He would then make two other regular season appearances as a left midfielder substitute before making his first left back substitute appearance on 3 August 2013 2–1 loss to Chicago Fire in place of injured starter, Raymon Gaddis. On 17 August 2013 in his first regular season start at left back, he again assisted on a Conor Casey goal in the Union's 2–0 victory over DC United. On 31 August 2013, Fabinho was named Sports Illustrated's MLS "Player of the Day" for his all-around performance in a 0–0 tie with Montreal Impact. On 19 October 2013, he scored his first career MLS goal against the Montreal Impact. After the trade of Defender Sheanon Williams to the Houston Dynamo during the 2015 season, Fabio earned a starting role regularly in the Philadelphia Union lineup. A high point of the season was his entrance into the Union's third round match in the 2015 Lamar Hunt U.S. Open Cup vs. D.C. United. Following a red card to Union Forward C. J. Sapong in the 1st half, Manager Jim Curtin subbed in Fabio at a left wing position to gather some offense for the ten man squad. Originally down 1–0, the Union fought back to tie up the match on an Eric Ayuk goal. Later on in the 79th minute, Fabio made a run down the left side of the field in towards the box. Just in front of the frame of goal, Fabio sent a hard shot into the back of the net over the GK Andrew Dykstra also feeling pressure from a defender. The improbable comeback victory over the Union's I-95 rivals will mark the 2015 U.S. Open Cup run. Fabinho was released by Philadelphia on 20 November 2019. International career On 28 July 2004, Fabinho was selected to represent the Brazil U-20 team at the SBS International Youth Soccer Cup in Shizuoka, Japan. His performance with Londrina in the 2004 Taça Belo Horizonte de Juniores lead to his national team selection. He played all 3 games at left back in the tournament, including 19 August 2004 opening game 2–1 victory against a Shizuoka select team as well as full internationals against Turkey on 22 August 2004 and Japan on 24 August 2004. Brazil won the tournament. Personal Alves earned his U.S. green card in summer 2015. This status also qualifies him as a domestic player for MLS roster purposes. References External links Philadelphia Union profile Sydney FC profile Esporte profile FIFA13 profile 1985 births Living people Brazilian men's footballers Men's association football defenders A-League Men players Melbourne Victory FC players Sydney FC players Expatriate men's soccer players in Australia Brazilian expatriate men's footballers Brazilian expatriate sportspeople in the United States Londrina Esporte Clube players Coritiba Foot Ball Club players J. Malucelli Futebol players Associação Atlética Ponte Preta players Paysandú F.C. players Mixto Esporte Clube players Volta Redonda FC players Philadelphia Union players Philadelphia Union II players Expatriate men's soccer players in the United States Major League Soccer players USL Championship players Brazil men's youth international footballers Sportspeople from Rondônia People from Ariquemes
```javascript let int_float_of_bits = (function(x){ return new Float32Array(new Int32Array([x]).buffer)[0] }); let int_bits_of_float = (function(x){ return new Int32Array(new Float32Array([x]).buffer)[0] }); function modf_float(x) { if (!isFinite(x)) { if (isNaN(x)) { return [ NaN, NaN ]; } else { return [ 1 / x, x ]; } } let neg = 1 / x < 0; let x$1 = Math.abs(x); let i = Math.floor(x$1); let f = x$1 - i; if (neg) { return [ - f, - i ]; } else { return [ f, i ]; } } function ldexp_float(x, exp) { let x$p = x; let exp$p = exp; if (exp$p > 1023) { exp$p = exp$p - 1023; x$p = x$p * Math.pow(2, 1023); if (exp$p > 1023) { exp$p = exp$p - 1023; x$p = x$p * Math.pow(2, 1023); } } else if (exp$p < -1023) { exp$p = exp$p + 1023; x$p = x$p * Math.pow(2, -1023); } return x$p * Math.pow(2, exp$p); } function frexp_float(x) { if (x === 0 || !isFinite(x)) { return [ x, 0 ]; } let neg = x < 0; let x$p = Math.abs(x); let exp = Math.floor(Math.LOG2E * Math.log(x$p)) + 1; x$p = x$p * Math.pow(2, - exp); if (x$p < 0.5) { x$p = x$p * 2; exp = exp - 1; } if (neg) { x$p = - x$p; } return [ x$p, exp | 0 ]; } function copysign_float(x, y) { let x$1 = Math.abs(x); let y$1 = y === 0 ? 1 / y : y; if (y$1 < 0) { return - x$1; } else { return x$1; } } function expm1_float(x) { let y = Math.exp(x); let z = y - 1; if (Math.abs(x) > 1) { return z; } else if (z === 0) { return x; } else { return x * z / Math.log(y); } } function hypot_float(x, y) { let x0 = Math.abs(x); let y0 = Math.abs(y); let a = x0 > y0 ? x0 : y0; let b = ( x0 < y0 ? x0 : y0 ) / ( a !== 0 ? a : 1 ); return a * Math.sqrt(1 + b * b); } export { int_float_of_bits, int_bits_of_float, modf_float, ldexp_float, frexp_float, copysign_float, expm1_float, hypot_float, } /* No side effect */ ```
```html <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ConsoleIO | @xarc/app-dev</title><meta name="description" content="Documentation for @xarc/app-dev"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@xarc/app-dev</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">@xarc/app-dev</a></li><li><a href="../modules/lib_dev_admin_console_io.html">lib/dev-admin/console-io</a></li><li><a href="lib_dev_admin_console_io.ConsoleIO.html">ConsoleIO</a></li></ul><h1>Class ConsoleIO</h1></div><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#lib/dev-admin/console-io.ConsoleIO">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="../variables/lib_dev_tasks.xrun.html" class="tsd-signature-type tsd-kind-variable">xrun</a><ul class="tsd-hierarchy"><li><span class="target">ConsoleIO</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L6">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:6</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="lib_dev_admin_console_io.ConsoleIO.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a> </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="lib_dev_admin_console_io.ConsoleIO.html#exit" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>exit</span></a> <a href="lib_dev_admin_console_io.ConsoleIO.html#getUserInput" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>User<wbr/>Input</span></a> <a href="lib_dev_admin_console_io.ConsoleIO.html#setup" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>setup</span></a> <a href="lib_dev_admin_console_io.ConsoleIO.html#show" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show</span></a> <a href="lib_dev_admin_console_io.ConsoleIO.html#write" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>write</span></a> </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_ConsoleIO" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>ConsoleIO</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="lib_dev_admin_console_io.ConsoleIO.html" class="tsd-signature-type tsd-kind-class">ConsoleIO</a><a href="#constructor.new_ConsoleIO" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol"> = {}</span></span><ul class="tsd-parameters"></ul></li></ul></div><h4 class="tsd-returns-title">Returns <a href="lib_dev_admin_console_io.ConsoleIO.html" class="tsd-signature-type tsd-kind-class">ConsoleIO</a></h4><aside class="tsd-sources"><p>Overrides VisualLogger.constructor</p><ul><li>Defined in <a href="path_to_url#L7">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:7</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="exit" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>exit</span><a href="#exit" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="exit.exit-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">exit</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#exit.exit-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L42">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:42</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="getUserInput" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>User<wbr/>Input</span><a href="#getUserInput" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="getUserInput.getUserInput-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>User<wbr/>Input</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getUserInput.getUserInput-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L20">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:20</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="setup" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>setup</span><a href="#setup" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="setup.setup-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">setup</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#setup.setup-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L13">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:13</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="show" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>show</span><a href="#show" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="show.show-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">show</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#show.show-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag ts-flagRest">Rest</code> <span class="tsd-signature-symbol">...</span><span class="tsd-kind-parameter">args</span>: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L32">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:32</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="write" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>write</span><a href="#write" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="write.write-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">write</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">str</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><a href="#write.write-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">str</span>: <span class="tsd-signature-type">any</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="path_to_url#L37">packages/xarc-app-dev/src/lib/dev-admin/console-io.ts:37</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a><a href="#exit" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>exit</span></a><a href="#getUserInput" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>User<wbr/>Input</span></a><a href="#setup" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>setup</span></a><a href="#show" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>show</span></a><a href="#write" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>write</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@xarc/app-dev</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="path_to_url" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html> ```
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # ============================================================================== """The TensorBoard Images plugin.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import imghdr import six from six.moves import urllib from werkzeug import wrappers from tensorboard import plugin_util from tensorboard.backend import http_util from tensorboard.plugins import base_plugin from tensorboard.plugins.image import metadata _IMGHDR_TO_MIMETYPE = { 'bmp': 'image/bmp', 'gif': 'image/gif', 'jpeg': 'image/jpeg', 'png': 'image/png' } _DEFAULT_IMAGE_MIMETYPE = 'application/octet-stream' class ImagesPlugin(base_plugin.TBPlugin): """Images Plugin for TensorBoard.""" plugin_name = metadata.PLUGIN_NAME def __init__(self, context): """Instantiates ImagesPlugin via TensorBoard core. Args: context: A base_plugin.TBContext instance. """ self._multiplexer = context.multiplexer def get_plugin_apps(self): return { '/images': self._serve_image_metadata, '/individualImage': self._serve_individual_image, '/tags': self._serve_tags, } def is_active(self): """The images plugin is active iff any run has at least one relevant tag.""" if not self._multiplexer: return False return bool(self._multiplexer.PluginRunToTagToContent(metadata.PLUGIN_NAME)) def _index_impl(self): runs = self._multiplexer.Runs() result = {run: {} for run in runs} mapping = self._multiplexer.PluginRunToTagToContent(metadata.PLUGIN_NAME) for (run, tag_to_content) in six.iteritems(mapping): for tag in tag_to_content: summary_metadata = self._multiplexer.SummaryMetadata(run, tag) tensor_events = self._multiplexer.Tensors(run, tag) samples = max([len(event.tensor_proto.string_val[2:]) # width, height for event in tensor_events] + [0]) result[run][tag] = {'displayName': summary_metadata.display_name, 'description': plugin_util.markdown_to_safe_html( summary_metadata.summary_description), 'samples': samples} return result @wrappers.Request.application def _serve_image_metadata(self, request): """Given a tag and list of runs, serve a list of metadata for images. Note that the images themselves are not sent; instead, we respond with URLs to the images. The frontend should treat these URLs as opaque and should not try to parse information about them or generate them itself, as the format may change. Args: request: A werkzeug.wrappers.Request object. Returns: A werkzeug.Response application. """ tag = request.args.get('tag') run = request.args.get('run') sample = int(request.args.get('sample', 0)) images = self._multiplexer.Tensors(run, tag) response = self._image_response_for_run(images, run, tag, sample) return http_util.Respond(request, response, 'application/json') def _image_response_for_run(self, tensor_events, run, tag, sample): """Builds a JSON-serializable object with information about images. Args: tensor_events: A list of image event_accumulator.TensorEvent objects. run: The name of the run. tag: The name of the tag the images all belong to. sample: The zero-indexed sample of the image for which to retrieve information. For instance, setting `sample` to `2` will fetch information about only the third image of each batch. Steps with fewer than three images will be omitted from the results. Returns: A list of dictionaries containing the wall time, step, URL, width, and height for each image. """ response = [] index = 0 filtered_events = self._filter_by_sample(tensor_events, sample) for (index, tensor_event) in enumerate(filtered_events): (width, height) = tensor_event.tensor_proto.string_val[:2] response.append({ 'wall_time': tensor_event.wall_time, 'step': tensor_event.step, # We include the size so that the frontend can add that to the <img> # tag so that the page layout doesn't change when the image loads. 'width': int(width), 'height': int(height), 'query': self._query_for_individual_image(run, tag, sample, index) }) return response def _filter_by_sample(self, tensor_events, sample): return [tensor_event for tensor_event in tensor_events if (len(tensor_event.tensor_proto.string_val) - 2 # width, height > sample)] def _query_for_individual_image(self, run, tag, sample, index): """Builds a URL for accessing the specified image. This should be kept in sync with _serve_image_metadata. Note that the URL is *not* guaranteed to always return the same image, since images may be unloaded from the reservoir as new images come in. Args: run: The name of the run. tag: The tag. sample: The relevant sample index, zero-indexed. See documentation on `_image_response_for_run` for more details. index: The index of the image. Negative values are OK. Returns: A string representation of a URL that will load the index-th sampled image in the given run with the given tag. """ query_string = urllib.parse.urlencode({ 'run': run, 'tag': tag, 'sample': sample, 'index': index, }) return query_string @wrappers.Request.application def _serve_individual_image(self, request): """Serves an individual image.""" tag = request.args.get('tag') run = request.args.get('run') index = int(request.args.get('index')) sample = int(request.args.get('sample', 0)) events = self._filter_by_sample(self._multiplexer.Tensors(run, tag), sample) images = events[index].tensor_proto.string_val[2:] # skip width, height data = images[sample] image_type = imghdr.what(None, data) content_type = _IMGHDR_TO_MIMETYPE.get(image_type, _DEFAULT_IMAGE_MIMETYPE) return http_util.Respond(request, data, content_type) @wrappers.Request.application def _serve_tags(self, request): index = self._index_impl() return http_util.Respond(request, index, 'application/json') ```
Climate change and poverty are deeply intertwined because climate change disproportionally affects poor people in low-income communities and developing countries around the world. The impoverished have a higher chance of experiencing the ill-effects of climate change due to the increased exposure and vulnerability. Vulnerability represents the degree to which a system is susceptible to, or unable to cope with, adverse effects of climate change including climate variability and extremes. Climate change highly exacerbates existing inequalities through its effects on health, the economy, and human rights. The Intergovernmental Panel on Climate Change's (IPCC) Fourth National Climate Assessment Report found that low-income individuals and communities are more exposed to environmental hazards and pollution and have a harder time recovering from the impacts of climate change. For example, it takes longer for low-income communities to be rebuilt after natural disasters. According to the United Nations Development Programme, developing countries suffer 99% of the casualties attributable to climate change. Different countries' impact on climate change also varies based on their stage of development; the 50 least developed countries of the world account for a 1% contribution to the worldwide emissions of greenhouse gasses, which are a byproduct of global warming. Additionally, 92% of accumulated greenhouse gas emissions can be attributed to countries from the Global North, which comprise 19% of the global population, while 8% of emissions are attributed to countries from the Global South, who bear the heaviest consequences of increasing global temperature. Climate and distributive justice questions are central to climate change policy options. Many policy tools can be employed to solve environmental problems such as cost-benefit analysis; however, such tools usually do not deal with such issues because they often ignore questions of just distribution and the environmental effects on human rights. Connection to poverty A 2020 World Bank paper estimated that between 32 million and 132 million additional people will be pushed into extreme poverty by 2030 due to climate change. The cycle of poverty exacerbates the potential negative impacts of climate change. This phenomenon is defined when poor families become trapped in poverty for at least three generations, have limited to no resources access, and are disadvantaged in means of breaking the cycle. While in rich countries, coping with climate change has largely been a matter of dealing with longer, hotter summers, and observing seasonal shifts; for those in poverty, weather-related disasters, bad harvest, or even a family member falling ill can provide crippling economic shocks. Besides these economic shocks, the widespread famine, drought, and potential humanistic shocks could affect the entire nation. High levels of poverty and low levels of human development limit the capacity of poor households to manage climate risks. With limited access to formal insurance, low incomes, and meager assets, poor households have to deal with climate-related shocks under highly constrained conditions. In addition, poorer households are heavily impacted by environmental shocks due to the lack of post-shock support from friends and family, the financial system, and social safety nets. Relationship to environmental racism As global climate has changed progressively over the past several decades, it has collided with environmental racism. The overlap of these two phenomena, has disproportionately affected different communities and populations throughout the world due to disparities in socio-economic status. This is especially evident in the Global South where, for example, byproducts of global climate change such as increasingly frequent and severe landslides resulting from more heavy rainfall events in Quito, Ecuador force people to also deal with profound socio-economic ramifications like the destruction of their homes and death. Countries such as Ecuador often contribute relatively little to climate change in terms of carbon dioxide emissions but have far fewer resources to ward off the negative localized impacts of climate change. This issue occurs globally, where nations in the global south bear the burden of natural disasters and weather extremes despite contributing little to the global carbon footprint. While people living in the Global South have typically been impacted most by the effects of climate change, people of color in the Global North also face similar situations in several areas. The issues of climate change and communities that are in a danger zone are not limited to North America or the United States either. Environmental racism and climate change coincide with one another. Rising seas affect poor areas such as Kivalina, Alaska, and Thibodaux, Louisiana, and countless other places around the globe. Impacts of environmental racism due to climate change become particularly evident during climate disasters. Following the 1995 Chicago heat wave, scholars analyzed the effects of environmental racism on the unequal death rate between races during this crisis. Direct impacts of this phenomenon can be observed through the lack of adequate warning and the failure to utilize pre-existing cooling centers which disadvantaged impoverished groups, and caused particularly devastating effects in Chicago's poorest areas. Poorer individuals are more susceptible to harm from climate change because they have less access to resources to help them recover from natural disasters. With the number of climate disasters increasing dramatically over the past 50 years, the impacts of environmental racism has increased, and social movements calling for environmental justice have grown in turn. Atmospheric colonization The concept of 'atmospheric colonization' refers to the observation that 92% of accumulated greenhouse gas emissions are attributable to countries from the Global North, comprising 19% of global population, while only 8% of emissions are attributable to countries from the Global South that will bear the heaviest consequences of increasing global temperatures. A 2020 World Bank paper estimated that between 32 million and 132 million additional people will be pushed into extreme poverty by 2030 due to climate change. Reversing development Climate change is globally encompassing and can reverse development in some areas in the following ways. Agricultural production and food security There has been considerable research comparing the interrelated processes of climate change on agriculture. Climate change affects rainfall, temperature, and water availability for agriculture in vulnerable areas. It also affects agriculture in several ways including productivity, agricultural practices, environmental effects, and distribution of rural space. Additional numbers affected by malnutrition could rise to 600 million by 2080. Climate change could worsen the prevalence of hunger through direct negative effects on production and indirect impacts on purchasing powers. Water insecurity Of the 3 billion growth in population projected worldwide by the mid-21st century, the majority will be born in countries already experiencing water shortages. As the overall climate of the earth warms, changes in the nature of global rainfall, evaporation, snow, and runoff flows will be affected. Safe water sources are essential for survival within a community. Manifestations of the projected water crisis include inadequate access to safe drinking water for about 884 million people as well as inadequate access to water for sanitation and water disposal for 2.5 billion people. As waters become warmer, hazardous algae and other bacteria growth increase, not only contaminating the water that we drink but also the seafood that we consume. With a population ranging between 198 and 210 million people in Nigeria, existing sanitation and water infrastructural facilities remain inadequate with 2.2billion people lacking access to safe water and 4.2 billion lacking safe sanitations both in the rural and urban areas. Rising sea levels and exposure to climate disasters Sea levels could rise rapidly with accelerated ice sheet disintegration. Global temperature increases of 3–4 degrees C could result in 330 million people being permanently or temporarily displaced through flooding Warming seas will also fuel more intense tropical storms. The destruction of coastal landscapes exacerbates the damage done by this increase in storms. Wetlands, forests, and mangroves have been removed for land development. These features usually slow runoff, storm surges, and prevent debris from being carried by flooding. Developing over these areas has increased the destructive power of floods and makes homeowners more susceptible to extreme weather events. Flooding causes the risk of submersion of lands in coastal areas in densely populated poverty areas, such as Alexandria and Port Said in Egypt, Lagos and Port Harcourt in Nigeria, and Cotonou in Benin. In some areas, such as coastal properties, real estate prices go up because of ocean access and housing scarcity, in part caused by homes being destroyed during storms. Wealthy homeowners have more resources to rebuild their homes and have better job security, which encourages them to stay in their communities following extreme weather events. Highly unstable areas, such as slopes and delta regions, are sold to lower-income families at a cheaper price point. After extreme weather events, Impoverished people have a difficult time finding or maintaining a job and rebuilding their homes. These challenges force many to relocate in search of job opportunities and housing. Ecosystems and biodiversity Climate change is already transforming ecological systems. Around one-half of the world's coral reef systems have suffered bleaching as a result of warming seas. In addition, the direct human pressures that might be experienced include overfishing which could lead to resource depletion, nutrient, and chemical pollution and poor land-use practices such as deforestation and dredging. Also, climate change may increase the number of arable land in high-latitude regions by reduction of the number of frozen lands. A 2005 study reports that temperature in Siberia has increased three degrees Celsius on average since 1960, which is reportedly more than in other areas of the world. Human health A direct effect is an increase in temperature-related illnesses and deaths related to prolonged heat waves and humidity. Climate change could also change the geographic range of vector-borne, specifically mosquito-borne diseases such as malaria dengue fever exposing new populations to the disease. Because a changing climate affects the essential ingredients of maintaining good health: clean air and water, sufficient food, and adequate shelter, the effects could be widespread and pervasive. The report of the WHO Commission on Social Determinants of Health points out that disadvantaged communities are likely to shoulder a disproportionate share of the burden of climate change because of their increased exposure and vulnerability to health threats. Over 90 percent of malaria and diarrhea deaths are borne by children aged 5 years or younger, mostly in developing countries. Other severely affected population groups include women, the elderly, and people living in small island developing states and other coastal regions, mega-cities, or mountainous areas. Aspects of Climate Change on Human Health Likely Relative Impact on Health Outcomes of the Components of Climate Change ++++= great effect; += small effect; empty cells indicate no known relationship. Human rights and democracy In June 2019, United Nations Special Rapporteur Philip Alston warned of a "climate apartheid" where the rich pay to escape the effects of climate change while the rest of the world suffers, potentially undermining basic human rights, democracy, and the rule of law. When Superstorm Sandy struck in 2012, he recounts, most people in New York City were left without power, while the Goldman Sachs headquarters had a private generator and protection by "tens of thousands of its own sandbags". Security impacts The concept of human security and the effects that climate change may have on it will become increasingly important as the affects become more apparent. Some effects are already evident and will become very clear in the human and climatic short-run (2007–2020). They will increase and others will manifest themselves in the medium term (2021–2050); whilst in the long run (2051–2100), they will all be active and interacting strongly with other major trends. There is the potential for the end of the petroleum economy for many producing and consuming nations, possible financial and economic crisis, a larger population of humans, and a much more urbanized humanity – far in excess of the 50% now living in small to very large cities. All these processes will be accompanied by the redistribution of the population nationally and internationally. Such redistributions typically have significant gender dimensions; for example, extreme event impacts can lead to male out migration in search of work, culminating in an increase in women-headed households – a group often considered particularly vulnerable. Indeed, the effects of climate change on impoverished women and children is crucial in that women and children, in particular, have unequal human capabilities. Infrastructure impacts The potential effects of climate change and the security of infrastructure will have the most direct effect on the poverty cycle. Areas of infrastructure effects will include water systems, housing and settlements, transport networks, utilities, and industry. Infrastructure designers can contribute in three areas for improving the living environment for the poor, in building design, in settlement planning and design as well as in urban planning. The National Research Council has identified five climate changes of particular importance to infrastructure and factors that should be taken into consideration when designing future structures. These factors include increases in very hot days and heat waves, increases in Arctic temperatures, rising sea levels, increases in intense precipitation events, and increases in hurricane intensity. Heat waves affect communities that live in traditionally cooler areas because many of the homes are not equipped with air conditioning units. Rising sea levels can be devastating for poor countries situated near the ocean and in delta regions, which experience increasingly overwhelming storm damage. In parts of eastern Caribbean nations, almost 60 percent of the homes were constructed without any building regulations. Many of these endangered populations are also affected by an increase in flooding in locations that lack adequate drainage. In 1998, close to 200 million people were affected by flooding in China's Yangtze River Valley; and in 2010, flooding in Pakistan affected 20 million people. These issues are made worse for people living in lower income areas and force them to relocate at a higher rate than other economic groups. In areas where poverty is prevalent and infrastructure is underdeveloped, climate change produces a critical threat to the future development of that country. Reports of a study done on ten geographically and economically diverse countries show how nine out of ten countries revealed an inability to develop infrastructures and its expensive maintenance due to the influence of climate change and cost. Proposed policy solutions Mitigation efforts Adaptation efforts Adaptation to global warming involves actions to tolerate the effects of global warming. Collaborative research from the Institute of Development Studies draws links between adaptation and poverty to help develop an agenda for pro-poor adaptation that can inform climate-resilient poverty reduction. Adaptation to climate change will be "ineffective and inequitable if it fails to learn and build upon an understanding of the multidimensional and differentiated nature of poverty and vulnerability". Poorer countries tend to be more seriously affected by climate change, yet have reduced assets and capacities with which to adapt. One can see this effect by comparing outcomes between Bangladesh and the United States following two severe storms. In the United States, Hurricane Andrew killed 23 people when it made landfall in 1992; however, one year before, in Bangladesh, a tropical cyclone killed approximately 100,000 people. Bangladesh, having a poorer population, was less prepared for the storm; and the country lacked sufficient weather forecasting systems needed to predict meteorological events. After the storm, Bangladesh required assistance from the international community because it didn't possess the funds needed to recover. As events like these increase in their frequency and severity, a more proactive approach is needed. This has led to more activities to integrate adaptation within development and poverty reduction programs. The rise of adaptation as a development issue has been influenced by concerns around minimizing threats to progress on poverty reduction, notably the Millennium Development Goals, and by the injustice of impacts that are felt hardest by those who have done least to contribute to the problem, framing adaptation as an equity and human rights issue. Other solutions include increasing access to quality health care for poor people and people of color, preparedness planning for urban heat island effects, identifying neighborhoods that are most likely to be impacted, investing in alternative fuel and energy research, and measuring the results of policy impacts. Regional effects Regional effects from global climate change varies from country to country. Many countries have different approaches to how they adapt to global climate change versus others. Bigger countries with more resources do not react the same as a country with less resources to use. Urgency to fix the problem is not present until the effect of global climate change is felt directly. Bangladesh is just one of the many examples of people being affected because they are not properly prepared to face global climate. Workers in the agriculture field in these countries specifically are effected more than others but the extent to how much each agriculture worker is effected varies from region to region. A country that exemplifies the inequality that is created due to varying affects in different regions by climate change is Nigeria. Nigeria is a country that mainly relies on oil as its main money generator, but is being affected by climate change and affecting the lower class workers such as farmers in their every day life. Lack of climate change information along with overprice land cost and government irresponsibleness towards climate change adaption continues to constrain farmers in Nigeria. A country supported by agricultural would take more action in order to combat climate change. Its economic value would be too high not to put more effort into fighting climate change. Since it's not a priority for the wealthier class in Nigeria, lower-class people directly suffer the effects of climate change in Nigeria more. Nigeria along with the rest of Africa is in danger of being affected by climate change the most. According to author Ignatius A. Madu research, the IPCC has declared Africa a high vulnerable area based on its high exposure, and lack of adaptability to global climate change.(IPCC 2007) It will effect the economy as well as social system in Africa if it is not addressed the way it should be. A country with so many natural resources such as Africa will lose those resources over time and will be effected harder than most regions of the world if climate change is not addressed with urgency. Lower class workers feel the effects differently region to region of climate change but the effects in some of these countries are not as devastating due to better adaption methods than others in different countries and regions. Located in South Asia is the country Sri Lanka that struggles with global climate change, but is doing more to combat it than others. The country Sri Lanka has now started to investigate farm level adaptation to climate change by observing smaller farming communities in Sri Lanka. These farmers use their personal experiences and gained knowledge to fight global climate change. They have emphasized managing non-climatic elements which they have no control over and this has helped them adapt faster than most farming communities to climate change. Climate change has caused these farmers efficiency to increase. This increase gives them a greater chance of not being effected by climate change too much. It also shows how social networks can effect adaption efforts. When more people take an issue seriously the response will be greater. Sri Lanka depends on agriculture goods to keep their economy stable and many people depend on it. Adaption efforts in Sri Lanka shows how the response from society can dictate the level of importance that people see in an issue. Understanding of the way people process information is just as important as knowing the information needed to combat socio-economic, cognitive and normative aspects with in communities. Unlike Nigeria, studies have been run and tested by the Sri Lanka government on how to adapt to climate change which is helping them not be completely defenseless against global climate change. Countries like Sri Lanka who have a government who depend on agricultural exports to sustain part of the government sure completely different response to combating climate change unlike places like Nigeria. When the issue affects those of the top adaption will happen with the urgency. This war cause approaches the climate change to look different until we are all affected equally. Adaption efforts have to be collective or we will not fix the worldwide problem or climate change in poverty. Proposed policy challenges The main difficulties involved with climate change policy are the timetable of return on investment and the disparate costs on countries. To control the price of carbon, richer countries would have to make large loans to poorer countries, with the potential return on investment taking generations. References Bibliography Delaney and Elizabeth Shrader (2000) "Gender and Post-Disaster Reconstruction: The Case of Hurricane Mitch in Honduras and Nicaragua", LCSPG/LAC Gender Team, The World Bank, Decision Review Draft, page 24 http://www.gdnonline.org/resources/reviewdraft.doc Esham, M., & Garforth, C. (2013). Agricultural adaptation to climate change: insights from a farming community in Sri Lanka. Mitigation and adaptation strategies for global change, 18(5), 535–549. IPCC. 2001. Impacts, Adaptation and Vulnerability, Contribution of Working Group II of the Intergovernmental Panel on Climate Change to the Third Assessment Report of the IPCC. Online at www.ipcc.ch (Accessed October 23, 2010) IPCC. 2007. Intergovernmental Panel on Climate Change Special Report on Emissions Scenarios (Accessed on November 2, 2010). IDS Bulletin. Poverty in a Changing Climate IDS Bulletin 39(4):2, September 2008 Jabeen, Huraera and Fuad H. Mallick. "Urban Poverty, climate change and built environment." The Daily Star. January 24, 2009. La Trobe, S. 2002. Climate Change and Poverty. https://web.archive.org/web/20110719200401/http://www.tearfund.org/webdocs/Website/Campaigning/Policy%20and%20research/Climate%20change%20and%20poverty%20paper.pdf (Accessed October 23, 2010) Liotta, Peter. "Climate Change and Human Security: The Use of Scenarios" Paper presented at the annual meeting of the International Studies Association, Town & Country Resort and Convention Center, San Diego, California, USA, Mar 22, 2006. 2009-05-25 <> Madu, I. A., & Nwankwo, C. F. (2021). Spatial pattern of climate change and farmer–herder conflict vulnerabilities in Nigeria. GeoJournal, 86(6), 2691–2707. Marger (2008). Examples of these disadvantages working in a circular process would be: economic decline, low personal income, no funds for school, which leads to lack of education. The lack of education results in unemployment and lastly low national productivity. ‘‘Social Inequality: Patterns and Processes.’’ McGraw Hill publishing. 4th edition. Mohammed, A., Hassan, H., & Zakari, M. (2021). Impact of Sustainable Development Goals (SDGS) on Poverty Alleviation among Rural Women and Youth in Federal Capital Territory Abuja, Nigeria. KIU Journal Of Humanities, 6(1), 109-122. Retrieved from https://ijhumas.com/ojs/index.php/kiuhums/article/view/1175 Miller, Kathleen. 1997. Climate Variability, Climate Change and Western Water. Report to the Western Water Policy Review Advisory Commission, NTIS, Springfield, VA. https://web.archive.org/web/20151031172136/http://www.isse.ucar.edu/water_climate/impacts.html (Accessed on November 2, 2010). O’Leary, Maureen. March 21, 2008. Climate Change on Infrastructure. http://scitizen.com/climate-change/climate-change-on-infrastructure_a-13-1788.html (Accessed on November 2, 2010). Ozor, N., Madukwe, M. C., Enete, A. A., Amaechina, E. C., & Onokala, P. (2010). Barriers to climate change adaptation among farming households of Southern Nigeria. Journal of Agricultural Extension, 14(1). Sample, Ian. "Warming hits ‘tipping point’" The Guardian. August 11, 2005. (Accessed on November 12, 2010). Schneider, S.H. et al. (2007). "Assessing key vulnerabilities and the risk from climate change. In: Climate Change 2007: Impacts, Adaptation and Vulnerability. Contribution of Working Group II to the Fourth Assessment Report of the Intergovernmental Panel on Climate Change [M.L. Parry et al. (eds.)"]. Cambridge University Press, Cambridge, U.K., and New York, N.Y., U.S.A.. pp. 779–810. Retrieved 2009-05-20. Simon, David. (2007), "Cities and Global Environmental Change: Exploring the Links," The Geographical Journal 173, 1 (March): 75–79 & see chapters 3 & 4 of Sir Nicholas Stern et al. (2007) Stern Review on the Economics of Climate Change. London: UK, Department of the Treasury http://www.hm-treasury.gov.uk/independent_reviews/stern_review_economics_climate_change/stern_review_report.cfm United Nations Development Programme. "Human Development Report 2007/2008: The 21st Century Climate Challenge." United Nations Development Programme, http://hdr.undp.org/en/media/hdr_20072008_en_complete.pdf (Accessed October 23, 2010). United Nations Development Programme. 1998. "Unequal Human Impacts of Environmental Damage," in Human Development Report 1998. Oxford and New York: Oxford University Press. United Nations Development Programme. 2006. "Human Development Report: Beyond Scarcity: Power, Poverty, and the Global Water Crisis." New York: Palgrave Macmillan, 2006. (pp. 25–199). UNICEF. 2007. Climate Change and Children. New York: United Nations Children's Fund. Progress in Drinking-water and Sanitation: special focus on sanitation. WHO/UNICEF Joint Monitoring Programme for Water Supply and Sanitation. July 17, 2008. p. 25. http://www.unicef.org/media/files/Joint_Monitoring_Report_-_17_July_2008.pdf . Updated Numbers: WHO/UNICEF Joint Monitoring Programme for Water Supply and Sanitation Updated Report. 2008. http://www.unicef.org/media/media_44093.html http://www.ied.ethz.ch/pub/pdf/IED_WP01_Schubert.pdf http://www-wds.worldbank.org/servlet/WDSContentServer/WDSP/IB/2010/11/02/000158349_20101102135244/Rendered/PDF/WPS5468.pdf World Health Organization. 2004. The Global Burden Disease: 2004 Update. CRC Press. 2018. "Poverty and Climate Change." https://library.oapen.org/handle/20.500.12657/43910. Climate change and society Effects of climate change Poverty
The 1956 NCAA Swimming and Diving Championships were contested in March 1956 at Kiputh Pool at Payne Whitney Gymnasium at Yale University in New Haven, Connecticut at the 20th annual NCAA-sanctioned swim meet to determine the team and individual national champions of men's collegiate swimming and diving in the United States. Ohio State once again retained the national title, the Buckeyes' tenth, after finishing fourteen points ahead of hosts Yale in the team standings. Team standings Note: Top 10 only (H) = Hosts Full results See also List of college swimming and diving teams References NCAA Division I Men's Swimming and Diving Championships NCAA Swimming And Diving Championships NCAA Swimming And Diving Championships NCAA Swimming And Diving Championships
```java /* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of this software, associated documentation and/or * data (collectively the "Software"), free of charge and under any and all * copyright rights in the Software, and any and all patent rights owned or * freely licensable by each licensor hereunder covering either (i) the * unmodified Software as contributed to or provided by such licensor, or (ii) * the Larger Works (as defined below), to deal in both * * (a) the Software, and * * (b) any piece of software and/or hardware listed in the lrgrwrks.txt file if * one is included with the Software each a "Larger Work" to which the Software * is contributed by such licensors), * * without restriction, including without limitation the rights to copy, create * derivative works of, display, perform, and distribute the Software and make, * use, sell, offer for sale, import, export, have made, and have sold the * Software and the Larger Work(s), and to sublicense the foregoing rights on * either these or other terms. * * This license is subject to the following condition: * * The above copyright notice and either this complete permission notice or at a * minimum a reference to the UPL must be included in all copies or substantial * portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ package com.oracle.truffle.api.profiles; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.HostCompilerDirectives; import com.oracle.truffle.api.dsl.InlineSupport.InlineTarget; import com.oracle.truffle.api.dsl.InlineSupport.IntField; import com.oracle.truffle.api.dsl.InlineSupport.RequiredField; import com.oracle.truffle.api.nodes.Node; /** * CountingConditionProfiles are useful to profile the outcome of conditions. A counting condition * profile holds a count for each branch whether a branch was hit or not and communicates this to * the compiler as frequency information. If binary information only is desired for each branch * should use {@link InlinedConditionProfile} instead. * * * <p> * <b> Usage example: </b> * * <pre> * abstract class AbsoluteNode extends Node { * * abstract void execute(int value); * * &#64;Specialization * int doDefault(int value, * &#64;Cached InlinedCountingConditionProfile p) { * if (p.profile(this, value >= 0)) { * return value; * } else { * return -value; * } * } * } * </pre> * * * @since 23.0 */ public final class InlinedCountingConditionProfile extends InlinedProfile { private static final InlinedCountingConditionProfile DISABLED; static { InlinedCountingConditionProfile profile = new InlinedCountingConditionProfile(); DISABLED = profile; } private final IntField trueCount; private final IntField falseCount; /** * A constant holding the maximum value an {@code int} can have, 2<sup>30</sup>-1. The sum of * the true and false count must not overflow. This constant is used to check whether one of the * counts does not exceed the required maximum value. */ static final int MAX_VALUE = 0x3fffffff; private InlinedCountingConditionProfile() { this.trueCount = null; this.falseCount = null; } private InlinedCountingConditionProfile(InlineTarget target) { this.trueCount = target.getPrimitive(0, IntField.class); this.falseCount = target.getPrimitive(1, IntField.class); } /** @since 23.0 */ public boolean profile(Node node, boolean value) { if (trueCount == null) { return value; } // locals required to guarantee no overflow in multi-threaded environments int t = trueCount.get(node); int f = falseCount.get(node); boolean val = value; if (val) { if (t == 0) { CompilerDirectives.transferToInterpreterAndInvalidate(); } if (f == 0) { // Make this branch fold during PE val = true; } if (HostCompilerDirectives.inInterpreterFastPath()) { if (t < MAX_VALUE) { trueCount.set(node, t + 1); } } } else { if (f == 0) { CompilerDirectives.transferToInterpreterAndInvalidate(); } if (t == 0) { // Make this branch fold during PE val = false; } if (HostCompilerDirectives.inInterpreterFastPath()) { if (f < MAX_VALUE) { falseCount.set(node, f + 1); } } } if (CompilerDirectives.inInterpreter()) { // no branch probability calculation in the interpreter return val; } else { int sum = t + f; return CompilerDirectives.injectBranchProbability((double) t / (double) sum, val); } } /** * Returns <code>true</code> if the {@link #profile(Node, boolean)} method ever received a * <code>true</code> value, otherwise <code>false</code>. For profiles with profiling disabled * or {@link #getUncached() uncached} profiles this method always returns <code>true</code>. * * @since 23.0 */ public boolean wasTrue(Node node) { return getTrueCount(node) != 0; } /** * Returns <code>true</code> if the {@link #profile(Node, boolean)} method ever received a * <code>false</code> value, otherwise <code>false</code>. For profiles with profiling disabled * or {@link #getUncached() uncached} profiles this method always returns <code>true</code>. * * @since 23.0 */ public boolean wasFalse(Node node) { return getFalseCount(node) != 0; } /** * {@inheritDoc} * * @since 23.0 */ @Override public void disable(Node node) { if (trueCount == null) { return; } if (this.trueCount.get(node) == 0) { this.trueCount.set(node, 1); } if (this.falseCount.get(node) == 0) { this.falseCount.set(node, 1); } } /** * {@inheritDoc} * * @since 23.0 */ @Override public void reset(Node node) { if (trueCount == null) { return; } this.trueCount.set(node, 0); this.falseCount.set(node, 0); } int getTrueCount(Node node) { if (trueCount == null) { return Integer.MAX_VALUE; } return trueCount.get(node); } int getFalseCount(Node node) { if (trueCount == null) { return Integer.MAX_VALUE; } return falseCount.get(node); } boolean isGeneric(Node node) { if (trueCount == null) { return true; } return getTrueCount(node) != 0 && getFalseCount(node) != 0; } boolean isUninitialized(Node node) { if (trueCount == null) { return false; } return getTrueCount(node) == 0 && getFalseCount(node) == 0; } /** * {@inheritDoc} * * @since 23.0 */ @Override public String toString(Node node) { if (trueCount == null) { return toStringDisabled(); } int t = trueCount.get(node); int f = falseCount.get(node); int sum = t + f; String details = String.format("trueProbability=%s (trueCount=%s, falseCount=%s)", (double) t / (double) sum, t, f); return toString(ConditionProfile.class, sum == 0, false, details); } /** * Returns an inlined version of the profile. This version is automatically used by Truffle DSL * node inlining. * * @since 23.0 */ public static InlinedCountingConditionProfile inline( @RequiredField(value = IntField.class)// @RequiredField(value = IntField.class) InlineTarget target) { if (Profile.isProfilingEnabled()) { return new InlinedCountingConditionProfile(target); } else { return getUncached(); } } /** * Returns the uncached version of the profile. The uncached version of a profile does not * perform any profiling. * * @since 23.0 */ public static InlinedCountingConditionProfile getUncached() { return DISABLED; } } ```
Edvard Lars Reguel Björkenheim (26 July 1901 – 24 May 1965) was a Finnish farmer and politician, born in Isokyrö. He was a member of the Agrarian League. He served as Minister of Defence from 26 April to 29 August 1958 and from 14 July 1961 to 13 April 1962. He was the owner of Orisberg Manor at Isokyrö. References 1901 births 1965 deaths People from Isokyrö People from Vaasa Province (Grand Duchy of Finland) 20th-century Finnish nobility Centre Party (Finland) politicians Ministers of Defence of Finland Finnish farmers Finnish military personnel of World War II
Multiple Intelligence International School (MIIS) is an international co-educational day and progressive school. The Main Campus of MIIS is located in Loyola Heights, Quezon City, and the Upper School campus is located along Katipunan Avenue, Quezon City, Philippines. History The Multiple Intelligence International School was first established as Child's Place Preschool in 1996, by Mary Joy Canon-Abaquin. It is the first educational institution in the Philippines that has based its approach on the multiple intelligence framework of Harvard-based cognitive psychologist, Howard Gardner. Child's Place is the preschool department of MIIS that caters to the Preschool Child from 2 to 5 years. The Multiple Intelligence International School (Grades 1-8) was founded to serve Lower and Middle School students. MIIS Upper School (Grades 9-12), was founded in 2007. In 2012, music researcher Pamela Costes-Onishi conducted a study that evaluated MIIS' Music Education curriculum with that of the Department of Education and found that it had distinct differences in approach and pedagogy. In 2016, MIIS celebrated their 20th founding anniversary. Academics and Curriculum MIIS does not conform to traditional modes of Philippine education. Following Howard Gardner's Multiple Intelligences Theory, MIIS focuses on eight intelligences among their students. The K-12 program covers 6 years of primary education, four years of Junior High School, and two years of Senior High School. MIIS is aligned with the Philippine Department of Education standards for the enhanced K-12 program. The school has been acknowledged as a leader in youth entrepreneurship in the Philippines. On September 23, 2019, MIIS partnered with Smart Communications to hold the Youth Innovation Challenge, at the Philippine International Convention Center. Campuses MIIS is located in two campuses in Loyola Heights, Quezon City, near Ateneo de Manila University and the University of the Philippines Diliman. The Main Campus, located in Escaler Street, Loyola Heights, Quezon City, houses the Child's Place Preschool and Lower and Middle School. The Upper School is located at Elizabeth Hall, Katipunan Avenue, Quezon City. Council of International Schools Accreditation In 2018, MIIS was given accreditation by the Council of International Schools. MIIS was the fourth international school in the Philippines to attain CIS accreditation at the time. References External links Multiple Intelligence International School Educational institutions established in 1996 International schools in Metro Manila Schools in Quezon City 1996 establishments in the Philippines
Oriental Bay is a bay and suburb of Wellington, the capital city of New Zealand. Noted for being both a popular beach and a luxurious centre of affluence in the city, it is located close to the Central Business District on Wellington Harbour. It has the closest beach to the central city and is thus a common destination for locals, who swarm here especially in the warmer months (December to March). Painted ladies and other historic houses, such as those in distinctly Wellingtonian streamline moderne style, are prominent alongside and up into the hills that face the bay. Situated against the northern slope of Mount Victoria, the suburb lies 1.5 kilometres southeast of the city centre, at the start of a coastal route which continues around into Evans Bay. Oriental Bay was originally named Duppa Bay, after its sole original resident George Duppa, but in 1843 he renamed it after one the Oriental, one of the first ships to bring settlers to Wellington. Originally described as a remote "dreary-looking spot" of rocks lying between cliffs and the sea used primarily for quarantining foreigners, it has undergone considerable renovation since colonisation's early stages. Many landmarks were built over the 20th century, such as the grand streamlined moderne houses like the Olympus building and the Anscombe Apartments, and the modernist Freyberg Pool built in the 1960s (which juts out onto the harbour and is named about Lord Freyberg, who adored the beach as a young man). However, the beach's greatest renovation came in 2004, when 22,000 tonnes of sand was shipped especially from Golden Bay to rebuild the beach, which had become worn down over many years. In the summer months, Oriental Bay becomes a hive of activity. The beach seems covered with swimmers, party goers and families. The Carter Fountain is a distinctive feature in the bay, as is the wooden pontoon which is often covered in swimmers. A small section of the bay that lies beside Freyberg Pool is known as Freyberg Beach, after Lord Freyberg. History 19th century Oriental Bay was originally known as Duppa, after the first and only resident at the time, George Duppa who later renamed the area Oriental Bay after the ship that he arrived in New Zealand on in 1840. The area was originally farm land and was used as a quarantine with a nurse and tent on the beach and by whalers, which resulted in a pungent odour from the boiled whale blubber. David Wilkinson from Ayrshire, Scotland, was an early Wellington resident and gardener who lived at Grass Street, Oriental Bay in a house named Roseneath Cottage. He opened Wilkinson's Tea Gardens at the bay in 1850. The tea gardens was a fashionable place to visit for many years until it closed in the early 20th century. Visitors would walk along the waterfront to enjoy tea and music in the tea rooms, wander around the garden and take away a posy of flowers. The 'Roseneath Estate' began to be developed in 1886 and possibly took its name from Wilkinson's business. Walking access from Oriental Bay to Roseneath begins at the top of Grass Street outside Wilkinson's house, now 13 Grass Street, at the foot of Wilkinson Street. Wilkinson also grew grapes commercially and operated a plant nursery, until at least 1891. Wilkinson died in 1902 but his son was still growing grapes in hothouses at Oriental Bay in 1913. Wilkinson junior died in 1919 and the tea garden property was divided up for housing in 1923. The first public baths at Oriental Bay was an open-air saltwater pool opened in 1864 where the Clyde Quay boat harbour is now. The baths was operated for many years by Henry and Matilda Meech, and known as Te Aro baths, Clyde Quay baths or Meech's baths. The original pool was 130 ft by 72 ft, but it was enlarged in 1877. An 1897 description stated that "the baths are securely protected from the visits of sea monsters". Around the pool there were 34 dressing rooms and rooms for refreshments. From the 1870s a quarry existed near the base of Carlton Gore Road. A temporary railway line was built in the 1880s to take spoil from the quarry for the Te Aro reclamation. The former quarry was developed into a small park in the early 1900s. Settlement of the area increased in the 1880s and residents and landowners began petitioning Wellington Harbour Board and Wellington City Council, asking that the bay not be used for industrial purposes such as ship repairs, that the road be improved and a promenade built, and that the bay should be kept clean of all the refuse and dead animals that swept up along the waterfront. 20th century Public amenities developed further in the early 1900s included public transport, improvements to Te Aro baths, road improvements, construction of the promenade, installation of the band rotunda, opening of a tea kiosk, and planting of trees. In 1901 Meech's baths were demolished and Wellington City Council built new public baths with men's and women's sections, known as Te Aro baths, further along the waterfront at the site of today's Freyberg Pool. The baths were enlarged in 1909. Schools held swimming lessons at the baths and swimming competitions took place there too. By the 1960s the baths were in disrepair: in 1962 a storm carried away a section of the wall and dressing rooms. The baths were replaced by Freyberg Pool, which opened in 1963. Trams began running along Oriental Parade in September 1904. They were replaced by buses in 1950. In 1911, Wellington City Council began building a sea wall along Oriental Bay from the Te Aro baths to Point Jerningham. The work was done in stages as funding allowed, and was completed as far as the tea kiosk at Point Jerningham by 1924. Gaps behind the sea wall were filled in and a promenade created. The sea wall is heritage-listed by Wellington City Council. Construction of the sea wall decreased the size of the rocky beach, and there were calls for sand to be brought in to enlarge and improve the area. A big boost to the beach came during World War 2, when ships from England brought sand as ballast which was then dumped at Oriental Bay. Almost 20,000 tons of sand was deposited on the beach during 1944-1945. The Oriental Bay Tea Kiosk opened in April 1913 on the site of a former quarry and industrial store at what is now 370 Oriental Bay, at the base of Carlton Gore Road. The ground floor held a large tea rooms and on the second storey was a dance hall with a sprung floor and glassed-in balcony around it. In 1916 dancing had "gone out of fashion" so the upper level was converted into a 31-room private hotel. From about 1921 until the 1940s the building became the Oriental Private Hotel (or Orient Private Hotel). From then until 1957 the building was a YWCA hostel, and from 1957 it was a Labour Department hostel for civil servants, especially young people newly-arrived in Wellington for training courses or new careers. Around 1980 the building was demolished and replaced by a Park Royal hotel, which became Raffaele Hotel and was then sold in 2003 and converted into apartments. The Carter Fountain was installed in the bay in 1973. 21st century In the early 2000s Freyberg Beach, the area of Oriental Bay next to Freyberg Pool, was redeveloped in a project costing $7.5 million. A grassed picnic area was enlarged, sand was brought in to extend the beach, and a pier, toilet block and multi-level sea platform were built. The project was awarded the George Malcolm Supreme Award in the Rural/Park/Recreational category of the New Zealand Institute of Landscape Architects in 2004. 22,000 tonnes of sand from Wainui Bay in Golden Bay was brought in to expand both Oriental and Freyberg Beach. Wind and waves cause the sand to shift, so twice a year Wellington City Council moves the sand around to maintain the beaches. In 2019 this was stated to cost about $70,000 per year. The sand needs to be topped up very ten to twelve years, so in 2015 the Council imported 2400 tonnes of sand from Dunedin. The sand at Oriental Bay is quite coarse-grained, to minimise loss to wind. Special soft sand is brought in for volleyball matches. Oriental Bay is a site for topless sunbathing. In December 2016, a Free The Nipple Beach Day was held there. Oriental Parade has been used for cycling and running races on a course around the coast since the nineteenth century. The Round the Bays fun run has taken place since the 1970s and is the third-largest mass-participation event in New Zealand. Runners and walkers begin in the CBD, usually at Frank Kitts Park, and travel around the coastline, along Oriental Bay and around past Evans Bay to Kilbirnie. More than 10,000 people took part in 2023. Points of interest Norfolk pines Norfolk pines are a distinctive feature of the promenade along Oriental Bay. The first seedlings were planted in 1921, and planting continued for several years. The mature trees, some up to 15 m tall, line most of Oriental Parade and are listed as heritage trees by Wellington City Council. In 2017 there were fears that kākā were damaging the trees. Many of the trees are illuminated at night with strings of lights along their branches. St Gerard's church and monastery St Gerard's is a brick church and monastery built on a promontory (Fitzgerald Point) overlooking Oriental Bay. The church was built in 1908 and the monastery in 1932. Together they form a distinctive landmark above the bay. Band rotunda The band rotunda in the middle of the beach at Oriental Bay is listed as a Historic Place Category 2 by Heritage New Zealand. It was built in 1936 to replace an earlier wooden band rotunda that stood on a concrete platform on the site. The Moderne-style concrete building opened on 1 May 1937 as a one-storey pavilion with changing rooms for swimmers and an open-air viewing platform on top. By the late 1970s it was not used much by bathers, so Wellington City Council called for ideas to repurpose the building. The original level used for community meeting rooms and public toilets, and a new storey was built on top. This became a restaurant, opened in 1985, and a new open-air roof level open to the public was created above the restaurant. The community rooms were closed in 2012 due to earthquake risk. In 2016 the Kaikōura earthquake caused a crack in the rotunda's foundation, which meant that the bottom floor could no longer bear the weight of the restaurant floor above it. Long exposure to the salty marine environment had also caused ‘concrete cancer’, corrosion of the metal reinforcing within the concrete structure. A contract to redevelop the building was signed in 2019 but progress was delayed by the Covid pandemic. In July 2022 the developer of the site paused construction because he had not found a tenant for the building. Carter Fountain The Carter Fountain was donated to the city in 1973 by local businessman Hugh Carter, in memory of his parents. The fountain spouts water into the air, and is illuminated at night. The band rotunda holds the land-based electrical components for the fountain. During events such as arts festivals, images have been projected onto the spray from the fountain. Freyberg Pool Freyberg Pool is an indoor public swimming pool built out into Oriental Bay. It was opened in 1963 near the site of the former Te Aro baths, an outdoor saltwater pool. Freyberg Pool is named after Bernard Freyberg, a former governor-general of New Zealand. Freyberg was a keen swimmer and had trained at the Te Aro baths. He died in 1963 so the new pool was named after him. The building is classified as a "Category I" ("places of 'special or outstanding historical or cultural heritage significance or value'") historic place by Heritage New Zealand. Tug boat restaurant A former tug boat is permanently moored in the lagoon next to Freyberg Pool. The ship, originally called Aucklander, was built in Scotland in 1958 and served as a tug boat in Auckland until 1986. It was sold and brought to Wellington in October 1986. The engines and other parts were removed and after refurbishment the tug was renamed Tapuhi II and moved to Oriental Bay where it opened as a restaurant and function centre in February 1992. The business was initially known as Tugboat on the Bay, and later Skippers Seafood Restaurant, then Boat Cafe. Heritage-listed buildings Apart from the band rotunda, Oriental Bay is the location of several other heritage-listed buildings: Tram Shelter (Former) built in 1904 Anscombe Flats, an art deco apartment block Apartment building at 300 Oriental Parade Inverleith Flats, apartment building at 306 Oriental Parade Demographics Oriental Bay statistical area covers . It had an estimated population of as of with a population density of people per km2. Oriental Bay had a population of 1,389 at the 2018 New Zealand census, an increase of 6 people (0.4%) since the 2013 census, and a decrease of 39 people (−2.7%) since the 2006 census. There were 666 households, comprising 660 males and 729 females, giving a sex ratio of 0.91 males per female. The median age was 50.0 years (compared with 37.4 years nationally), with 66 people (4.8%) aged under 15 years, 336 (24.2%) aged 15 to 29, 579 (41.7%) aged 30 to 64, and 408 (29.4%) aged 65 or older. Ethnicities were 86.6% European/Pākehā, 5.0% Māori, 1.1% Pasifika, 10.8% Asian, and 3.7% other ethnicities. People may identify with more than one ethnicity. The percentage of people born overseas was 30.2, compared with 27.1% nationally. Although some people chose not to answer the census's question about religious affiliation, 50.1% had no religion, 38.0% were Christian, 0.9% were Hindu, 0.2% were Muslim, 0.6% were Buddhist and 3.7% had other religions. Of those at least 15 years old, 714 (54.0%) people had a bachelor's or higher degree, and 66 (5.0%) people had no formal qualifications. The median income was $57,000, compared with $31,800 nationally. 513 people (38.8%) earned over $70,000 compared to 17.2% nationally. The employment status of those at least 15 was that 687 (51.9%) people were employed full-time, 174 (13.2%) were part-time, and 24 (1.8%) were unemployed. Notable residents Sam Neill – Actor (Home situated in Upper Roseneath) Bob Hoskins – Actor ($1.5 Million (US) Duplex on Oriental Parade) Kerry Prendergast – Former Mayor of Wellington (Penthouse Apartment on Oriental Parade) Jane Campion – Academy Award-Winning Film Maker ($2.3 million (US) Apartment on Oriental Terrace) Robyn Kahukiwa – International Maori/New Zealand Artist Emily Watson – Actress ($1.2 million (US) Condo on Oriental Parade) Images of Oriental Bay References Suburbs of Wellington City Populated places around the Wellington Harbour Beaches of the Wellington Region
Nataša Tapušković (née Šolak; ; born 27 August 1975) is a Serbian actress. She is famous for her role as Danica Janković in Barking at the Stars (1998) and for her role as Bosnian hostage Sabaha in Emir Kusturica's Life Is a Miracle (2004). Filmography References External links 1975 births Living people Actors from Kruševac 20th-century Serbian actresses 21st-century Serbian actresses Serbian film actresses Serbian television actresses Dr. Branivoj Đorđević Award winners
```kotlin package de.westnordost.streetcomplete.osm.building import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder import de.westnordost.streetcomplete.osm.building.BuildingType.* import de.westnordost.streetcomplete.osm.nowAsCheckDateString import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFails class BuildingTypeCreatorKtTest { @Test fun `set building as unsupported not possible`() { assertFails { UNSUPPORTED.appliedTo(mapOf()) } } @Test fun `set building`() { assertEquals( mapOf("building" to "residential"), RESIDENTIAL.appliedTo(mapOf()) ) assertEquals( mapOf("building" to "residential"), RESIDENTIAL.appliedTo(mapOf("building" to "yes")) ) assertEquals( mapOf("building" to "residential"), RESIDENTIAL.appliedTo(mapOf("man_made" to "storage_tank")) ) } @Test fun `set man-made`() { assertEquals( mapOf("man_made" to "storage_tank"), STORAGE_TANK.appliedTo(mapOf()) ) assertEquals( mapOf("man_made" to "storage_tank"), STORAGE_TANK.appliedTo(mapOf("man_made" to "silo")) ) assertEquals( mapOf("man_made" to "storage_tank"), STORAGE_TANK.appliedTo(mapOf("building" to "roof")) ) } @Test fun `remove ruins etc`() { assertEquals( mapOf("building" to "roof", "historic" to "yes"), ROOF.appliedTo(mapOf( "building" to "residential", "ruins" to "yes", "abandoned" to "yes", "disused" to "yes", "historic" to "yes", )) ) assertEquals( mapOf("building" to "residential"), RESIDENTIAL.appliedTo(mapOf("building" to "residential", "ruins" to "yes")) ) } @Test fun `does not remove historic when retagging historic building`() { assertEquals( mapOf("building" to "residential", "historic" to "yes"), RESIDENTIAL.appliedTo(mapOf( "building" to "yes", "historic" to "yes" )) ) } @Test fun `set building type to yes when tagging as historic building`() { assertEquals( mapOf("building" to "yes", "historic" to "yes"), HISTORIC.appliedTo(mapOf( "building" to "apartments", "historic" to "no" )) ) } @Test fun `update check date`() { assertEquals( mapOf("building" to "residential", "check_date" to nowAsCheckDateString()), RESIDENTIAL.appliedTo(mapOf("building" to "residential")) ) assertEquals( mapOf("man_made" to "silo", "check_date" to nowAsCheckDateString()), SILO.appliedTo(mapOf("man_made" to "silo")) ) assertEquals( mapOf("building" to "hut", "abandoned" to "yes", "check_date" to nowAsCheckDateString()), ABANDONED.appliedTo(mapOf("building" to "hut", "abandoned" to "yes")) ) } @Test fun `don't overwrite aliases`() { assertEquals( mapOf("building" to "livestock", "check_date" to nowAsCheckDateString()), FARM_AUXILIARY.appliedTo(mapOf("building" to "livestock")) ) assertEquals( mapOf("building" to "residential"), RESIDENTIAL.appliedTo(mapOf("building" to "livestock")) ) } } private fun BuildingType.appliedTo(tags: Map<String, String>): Map<String, String> { val cb = StringMapChangesBuilder(tags) applyTo(cb) val mutableMap = tags.toMutableMap() cb.create().applyTo(mutableMap) return mutableMap } ```
Puchberg may refer to: Puchberg am Schneeberg, a village in Lower Austria Michael von Puchberg (1741–1822, Vienna), Austrian textile merchant See also Buchberg (disambiguation)
```xml export * from './extensionStatus'; export * from './settingsManager'; export * from './state'; ```
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package com.weibo.api.motan.protocol.yar.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * * @Description yar rpc config * @author zhanglei * @date 2016-6-7 * */ @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.TYPE}) public @interface YarConfig { /** * yar rpc request path * @return path */ String path() default ""; } ```
Tuj () or TUJ may refer to: Tuj, Hormozgan Tuj, South Khorasan Tuj, alternate name of Tajag, South Khorasan Tum Airport (IATA airport code TUJ, ICAO airport code HAMJ), Maji Woreda, Ethiopia See also Temple University, Japan Campus (TUJ)
The Tempe Daily News was an afternoon newspaper published in Tempe, Arizona, a suburb of Phoenix. It was created in 1887 when Curt W. Miller (1864–1943) purchased the 20-month-old Salt River Valley News from Publishers John Byron Fitch and T.B. Martin, renamed it Tempe Daily News, and published its first edition in August 1887. The News became the town's official newspaper in 1895 and Miller continued publishing until his death in 1943. Miller's grandson, Curt W. Miller, published the newspaper until September 1944, at which time he sold it to Francis Connolly. At the time, the paper had one carrier, one linotype machine, and a circulation of 110. Connolly published the News until his death in July 1978, by which time he had built its circulation to 15,000 and employed 80 carriers in addition to 50 other employees. His widow, Irma Connolly, published the paper until 1980, at which time she sold it to Cox Enterprises. Cox renamed the paper Tempe Daily News Tribune in 1986 in order to make it consistent with the other newspapers it had acquired in the region. Cox sold its holdings to Canadian-based Thomson Newspapers in 1996 and the paper's new owners combined the Tempe Daily News Tribune with four other newspapers to form The Tribune in 1997. This publication became the East Valley Tribune in December 1999. Thompson sold its holdings to California's Freedom Publications, Inc. in 2000 and the East Valley Tribune ceased publication in 2009, ending 122 years of continuous local news coverage in Tempe. References Mass media in Tempe, Arizona Newspapers established in 1887 Publications disestablished in 2009 Defunct newspapers published in Arizona
Raipur Fish Hatchery and Training Centre is a fish hatchery in Raipur Upazila, Lakshmipur District, Bangladesh. One of the six main fish hatcheries in Bangladesh, it was the largest hatchery in the district during the Noakhali Rural Development Project implemented during 1978-1992 by DANIDA, a Danish development agency. One of the three Principal Scientific Officers (PSO) of the Department of Fisheries of Bangladesh governments is assigned to Raipur Hatchery. It also is one of three training centers directly governed by the Director General of the Department, along with Fisheries Training Institute (Chandpur) and Fisheries Training Academy in (Dhaka). The Raipur Upazila has 8 fish farms, 14 dairy farms, 72 poultry farms and this one hatchery. As of 2004, the government-owned hatchery was able to produce 504 kilograms of hatchlings a year, which mostly consisted of endemic species like Catla catla (katla), Labeo rohita (rui), Cirrhinus cirrhosus (mrigal), Labeo calbasu (kalabaus), Clarias batrachus (magur), and Channa striata (shingi). History In 1979, mirror carps (Cyprinus carpio var. specularis) from Nepal were first introduced to Bangladesh for the World Bank financed Raipur Fish Hatchery. In 1982, the Raipur Hatchery started artificial spawning in Bangladesh. In 2001, the Greater Noakhali Aquaculture Extension Component (GNAEC), a sub-program of DANIDA's Agricultural Sector Program in Bangladesh, shifted from the hatchery development strategy of hatched at the Raipur Hatchery. GNAEC abandoned "backyard hatcheries" and "village type prawn hatcheries" models for large-scale private sector development References External links Raipur Fishery Map Fishing in Bangladesh Fish hatcheries Training organizations
Emilio Cavenecia was a nineteenth-century Peruvian military hero killed in battle during the War of the Pacific. Emilio Cavenecia Avenue, in the financial district of San Isidro, Peru, is named in his honor. Bibliography "Los hijos de los libertadores" (The Sons of the Liberators) By Guillermo Thorndike, Published by Fondo Editorial del Congreso del Perú, Fondo Editorial del Banco de Crédito del Perú, 2005, , 1317 pages, Page 133. Year of birth missing Year of death missing Peruvian military personnel of the War of the Pacific Military personnel killed in the War of the Pacific